successfully ported everything to a flesh shabti template. shortnames work now,...
[zzz-floof.git] / floof / model / users.py
1 #
2 # floof/floof/model/users.py
3 #
4 # Copyright (c) 2009 Scribblr
5 #
6
7 from elixir import Entity, Field, Unicode, belongs_to, has_many
8
9 class User(Entity):
10 name = Field(Unicode(20))
11 has_many('identity_urls', of_kind='IdentityURL')
12
13 class IdentityURL(Entity):
14 url = Field(Unicode(255))
15 belongs_to('user', of_kind='User')
16