schemas/Bookmark.py
branchstable
changeset 2094 59a4e9f4f57a
parent 1977 606923dff11b
child 2144 51c84d585456
equal deleted inserted replaced
2093:e3aaf61f8c66 2094:59a4e9f4f57a
     1 """
     1 """the Bookmark entity type for internal links
     2 
     2 
     3 :organization: Logilab
     3 :organization: Logilab
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     7 """
     7 """
     8 
     8 
     9 class Bookmark(MetaUserEntityType):
     9 class Bookmark(MetaUserEntityType):
    10     """define an entity type, used to build the application schema"""
    10     """bookmarks are used to have user's specific internal links"""
    11     title = String(required=True, maxsize=128)
    11     title = String(required=True, maxsize=128, internationalizable=True)
    12     path  = String(maxsize=512, required=True,
    12     path  = String(maxsize=512, required=True,
    13                    description=_("relative url of the bookmarked page"))
    13                    description=_("relative url of the bookmarked page"))
    14 
    14 
    15     bookmarked_by = SubjectRelation('CWUser',
    15     bookmarked_by = SubjectRelation('CWUser',
    16                                     description=_("users using this bookmark"))
    16                                     description=_("users using this bookmark"))