* src/EventEdit.py (get_place): Typo.

svn: r4173
This commit is contained in:
Alex Roitman
2005-03-14 00:10:36 +00:00
parent 35bc979e8e
commit 6b8d0501f6
2 changed files with 4 additions and 5 deletions

View File

@ -298,11 +298,8 @@ class EventEditor:
def get_place(self,field):
text = unicode(field.get_text()).strip()
if text:
if self.pmap.has_key(text):
return self.parent.db.get_event_from_handle(self.pmap[text])
else:
return None
if text and self.pmap.has_key(text):
return self.parent.db.get_place_from_handle(self.pmap[text])
else:
return None