Modify

#11106 closed defect (fixed)

NameError: global name 'Locale' is not defined

Reported by: anonymous Owned by: jun66j5
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)

SystemInformation.png (14.5 KB) - added by rjollos 19 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 19 months ago by jun66j5

  • Status changed from new to assigned

Oh..., I have yet to test without Babel. Thanks for the reporting!

comment:2 Changed 19 months ago by anonymous

Ah:

from babel import Locale

..and if that fails there's no fallback provided for the code above.

comment:3 Changed 19 months ago by anonymous

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 19 months ago by rjollos

comment:4 Changed 19 months ago by rjollos

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 19 months ago by jun66j5

(In [13195]) ticketcalendar: fixed not working without Babel

refs #11106.

comment:6 Changed 19 months ago by jun66j5

  • Resolution set to fixed
  • Status changed from assigned to closed

The issue has been fixed in [13195]. Thanks.

Add Comment

Modify Ticket

Action
as closed The owner will remain jun66j5.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.