Modify ↓
Opened 11 years ago
Closed 11 years ago
#11106 closed defect (fixed)
NameError: global name 'Locale' is not defined
Reported by: | anonymous | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Component: | TicketCalendarPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
Specifically this line:
return locale or Locale('en', 'US')
...is causing the problem.
System info:
Trac 1.0 Trac 1.0 Genshi 0.6 (without speedups) pysqlite 2.6.0 Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] setuptools 0.6c11 setuptools 0.6c11 SQLite 3.6.21 jQuery 1.7.2
Attachments (1)
Change History (7)
comment:1 Changed 11 years ago by
Status: | new → assigned |
---|
comment:2 Changed 11 years ago by
Ah:
from babel import Locale
..and if that fails there's no fallback provided for the code above.
comment:3 Changed 11 years ago by
oops, just seen your reply - yep, does need testing without Babel! :-)
(I've installed Babel on our system now and the plug-in is working)
Changed 11 years ago by
Attachment: | SystemInformation.png added |
---|
comment:4 Changed 11 years ago by
Replying to anonymous:
System info:
Off-topic: I've seen several systems that have duplicate entries for many of the System Info items, like you show (see also attachment:SystemInformation.png from one of my installs). Any idea of what that happens?
comment:5 Changed 11 years ago by
comment:6 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The issue has been fixed in [13195]. Thanks.
Note: See
TracTickets for help on using
tickets.
Oh..., I have yet to test without Babel. Thanks for the reporting!