Modify

Opened 12 years ago

Closed 12 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)

SystemInformation.png (14.5 KB) - added by Ryan J Ollos 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by Jun Omae

Status: newassigned

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

comment:2 Changed 12 years ago by anonymous

Ah:

from babel import Locale

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

comment:3 Changed 12 years 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 12 years ago by Ryan J Ollos

Attachment: SystemInformation.png added

comment:4 Changed 12 years ago by Ryan J Ollos

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 12 years ago by Jun Omae

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

refs #11106.

comment:6 Changed 12 years ago by Jun Omae

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.