entity.py
branchstable
changeset 2125 19861294506f
parent 2005 e8032965f37a
child 2144 51c84d585456
child 2312 af4d8f75c5db
--- a/entity.py	Fri Jun 19 08:47:05 2009 +0200
+++ b/entity.py	Fri Jun 19 09:19:27 2009 +0200
@@ -398,7 +398,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: