schemas/Bookmark.py
changeset 3890 d7a270f50f54
parent 3877 7ca53fc72a0a
child 4252 6c4f109c2b03
--- a/schemas/Bookmark.py	Sun Nov 08 21:53:18 2009 +0100
+++ b/schemas/Bookmark.py	Fri Nov 20 19:35:54 2009 +0100
@@ -13,7 +13,7 @@
 
 class Bookmark(EntityType):
     """bookmarks are used to have user's specific internal links"""
-    permissions = {
+    __permissions__ = {
         'read':   ('managers', 'users', 'guests',),
         'add':    ('managers', 'users',),
         'delete': ('managers', 'owners',),
@@ -29,7 +29,7 @@
 
 
 class bookmarked_by(RelationType):
-    permissions = {'read':   ('managers', 'users', 'guests',),
+    __permissions__ = {'read':   ('managers', 'users', 'guests',),
                    # test user in users group to avoid granting permission to anonymous user
                    'add':    ('managers', RRQLExpression('O identity U, U in_group G, G name "users"')),
                    'delete': ('managers', RRQLExpression('O identity U, U in_group G, G name "users"')),