equal
deleted
inserted
replaced
|
1 |
|
2 class Bookmark(MetaUserEntityType): |
|
3 """define an entity type, used to build the application schema""" |
|
4 title = String(required=True, maxsize=128) |
|
5 path = String(maxsize=512, required=True, |
|
6 description=_("relative url of the bookmarked page")) |
|
7 |
|
8 bookmarked_by = SubjectRelation('EUser', |
|
9 description=_("users using this bookmark")) |
|
10 |
|
11 |
|
12 class bookmarked_by(MetaUserRelationType): |
|
13 permissions = {'read': ('managers', 'users', 'guests',), |
|
14 # test user in users group to avoid granting permission to anonymous user |
|
15 'add': ('managers', RRQLExpression('O identity U, U in_group G, G name "users"')), |
|
16 'delete': ('managers', RRQLExpression('O identity U, U in_group G, G name "users"')), |
|
17 } |