Remove unicode handles for places

svn: r4221
This commit is contained in:
Alex Roitman 2005-03-22 17:28:04 +00:00
parent 9c7e0261a4
commit d78cd57231

View File

@ -1833,7 +1833,7 @@ class Event(PrimaryObject,PrivateObject,MediaBase):
else: else:
self.witness = None self.witness = None
else: else:
self.place = u'' self.place = ""
self.date = None self.date = None
self.description = "" self.description = ""
self.name = "" self.name = ""
@ -1889,7 +1889,7 @@ class Event(PrimaryObject,PrivateObject,MediaBase):
witness.val not in handle_list ] witness.val not in handle_list ]
self.witness = new_list self.witness = new_list
elif classname == 'Place' and self.place in handle_list: elif classname == 'Place' and self.place in handle_list:
self.place = u'' self.place = ""
def _replace_handle_reference(self,classname,old_handle,new_handle): def _replace_handle_reference(self,classname,old_handle,new_handle):
if classname == 'Person' and self.witness: if classname == 'Person' and self.witness:
@ -2447,7 +2447,7 @@ class MediaObject(PrimaryObject,SourceNote):
self.mime = "" self.mime = ""
self.desc = "" self.desc = ""
self.date = None self.date = None
self.place = u"" self.place = ""
self.thumb = None self.thumb = None
def serialize(self): def serialize(self):
@ -2490,7 +2490,7 @@ class MediaObject(PrimaryObject,SourceNote):
def _remove_handle_references(self,classname,handle_list): def _remove_handle_references(self,classname,handle_list):
if classname == 'Place' and self.place in handle_list: if classname == 'Place' and self.place in handle_list:
self.place = u'' self.place = ""
def _replace_handle_reference(self,classname,old_handle,new_handle): def _replace_handle_reference(self,classname,old_handle,new_handle):
if classname == 'Place' and self.place == old_handle: if classname == 'Place' and self.place == old_handle: