insure a string is always returned from __str__

This commit is contained in:
Frédéric Péters 2007-01-24 17:12:17 +00:00
parent 61f84ca4bc
commit 22b7c56551
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class Identity(StorableObject):
return self.name
if self.email:
return self.email
return self.id
return str(self.id)
def migrate(self):
if hasattr(self, 'uid'):