|
1 """entity classes user and group entities |
|
2 |
|
3 :organization: Logilab |
|
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
|
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
6 """ |
|
7 __docformat__ = "restructuredtext en" |
1 from logilab.common.decorators import cached |
8 from logilab.common.decorators import cached |
2 |
9 |
3 from cubicweb import Unauthorized |
10 from cubicweb import Unauthorized |
4 from cubicweb.entities import AnyEntity, fetch_config |
11 from cubicweb.entities import AnyEntity, fetch_config |
5 |
12 |
24 'use_email' : 'inlineview', # 'primary', |
31 'use_email' : 'inlineview', # 'primary', |
25 'in_state' : 'primary', |
32 'in_state' : 'primary', |
26 'in_group' : 'primary', |
33 'in_group' : 'primary', |
27 ('owned_by', '*', 'object') : ('generated', 'link'), |
34 ('owned_by', '*', 'object') : ('generated', 'link'), |
28 ('created_by','*','object') : ('generated', 'link'), |
35 ('created_by','*','object') : ('generated', 'link'), |
|
36 ('bookmarked_by', '*', 'object'): ('generated', 'create'), |
29 } |
37 } |
30 |
38 |
31 # used by repository to check if the user can log in or not |
39 # used by repository to check if the user can log in or not |
32 AUTHENTICABLE_STATES = ('activated',) |
40 AUTHENTICABLE_STATES = ('activated',) |
33 |
41 |