Date handling improvements (calendar conversions)

svn: r1233
This commit is contained in:
Don Allingham
2002-12-30 00:42:47 +00:00
parent 8d773d3e7d
commit ba3ab2b947
7 changed files with 136 additions and 141 deletions

View File

@ -149,12 +149,13 @@ class EventEditor:
pass
def on_menu_changed(self,obj):
self.date.set(self.date_field.get_text())
self.date.set_calendar(obj.get_data("d"))
self.date_field.set_text(self.date.getDate())
def get_place(self,field,makenew=0):
text = strip(field.get_text())
if text != "":
if text:
if self.pmap.has_key(text):
return self.parent.db.getPlaceMap()[self.pmap[text]]
elif makenew: