65
65
preferences = Reference(preferences_id, 'Preferences.id')
68
def __init__(self, store, display_name=None, preferences=None):
68
69
super(User, self).__init__()
69
70
self._created_on = date_factory.now()
70
71
user_id = uid_factory.new_uid()
72
73
'Duplicate user id {0}'.format(user_id))
74
75
self.display_name = ('' if display_name is None else display_name)
75
76
self.preferences = preferences
79
80
short_user_id = self.user_id.int