schemas/Bookmark.py
branchtls-sprint
changeset 1398 5fe84a5f7035
parent 0 b97547f5f1fa
child 1802 d628defebc17
equal deleted inserted replaced
1397:6cbc7bc8ea6d 1398:5fe84a5f7035
     3     """define an entity type, used to build the application schema"""
     3     """define an entity type, used to build the application schema"""
     4     title = String(required=True, maxsize=128)
     4     title = String(required=True, maxsize=128)
     5     path  = String(maxsize=512, required=True,
     5     path  = String(maxsize=512, required=True,
     6                    description=_("relative url of the bookmarked page"))
     6                    description=_("relative url of the bookmarked page"))
     7     
     7     
     8     bookmarked_by = SubjectRelation('EUser',
     8     bookmarked_by = SubjectRelation('CWUser',
     9                                     description=_("users using this bookmark"))
     9                                     description=_("users using this bookmark"))
    10     
    10     
    11 
    11 
    12 class bookmarked_by(MetaUserRelationType):
    12 class bookmarked_by(MetaUserRelationType):
    13     permissions = {'read':   ('managers', 'users', 'guests',),
    13     permissions = {'read':   ('managers', 'users', 'guests',),