changeset 2144 | 51c84d585456 |
parent 2126 | a25859917ccc |
parent 2125 | 19861294506f |
child 2381 | caad2367d940 |
--- a/entity.py Tue Jun 23 13:31:35 2009 +0200 +++ b/entity.py Tue Jun 23 13:36:38 2009 +0200 @@ -405,7 +405,7 @@ path = etype.lower() if mainattr != 'eid': value = getattr(self, mainattr) - if value is None: + if value is None or unicode(value) == u'': mainattr = 'eid' path += '/eid' elif needcheck: