- Revision
- 15327
- Author
- rae
- Date
- 2007-09-12 13:54:51 -0700 (Wed, 12 Sep 2007)
Log Message
Fix for bug 10130 (Localizing the date format strings causes an exception to be raised), r=jeffrey
Uses local, non-localizable format for hard-coded time string.
Uses local, non-localizable format for hard-coded time string.
Modified Paths
Diff
Modified: trunk/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py (15326 => 15327)
--- trunk/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py 2007-09-12 20:04:55 UTC (rev 15326) +++ trunk/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py 2007-09-12 20:54:51 UTC (rev 15327) @@ -775,7 +775,8 @@ Knows that the data Type is timedelta. """ - zeroHours = pim.durationFormat.parse("0:00") + durationFormat = PyICU.SimpleDateFormat(u"H:mm") + zeroHours = durationFormat.parse(u"0:00") dummyDate = datetime(2005,1,1) def GetAttributeValue (self, item, attributeName):
Modified: trunk/chandler/parcels/osaf/views/detail/detail.py (15326 => 15327)
--- trunk/chandler/parcels/osaf/views/detail/detail.py 2007-09-12 20:04:55 UTC (rev 15326) +++ trunk/chandler/parcels/osaf/views/detail/detail.py 2007-09-12 20:54:51 UTC (rev 15327) @@ -44,6 +44,7 @@ from repository.item.Item import Item import wx import logging +import PyICU from PyICU import ICUError from datetime import datetime, time, timedelta from i18n import ChandlerMessageFactory as _ @@ -1456,7 +1457,8 @@ self.GetAttributeValue(item, attributeName)) class CalendarTimeAttributeEditor(TimeAttributeEditor): - zeroHours = pim.durationFormat.parse(_(u"0:00")) + durationFormat = PyICU.SimpleDateFormat(u"H:mm") + zeroHours = durationFormat.parse(u"0:00") def GetAttributeValue(self, item, attributeName): event = pim.EventStamp(item)
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
