Skip to content
Snippets Groups Projects
schema.py 466 B
Newer Older
_ = unicode
Adrien Di Mascio's avatar
Adrien Di Mascio committed
from yams.buildobjs import EntityType, String, RichString

class Link(EntityType):
    """a link to an external internet resource"""
    title = String(required=True, fulltextindexed=True, maxsize=256)
    url = String(required=True, fulltextindexed=True, maxsize=512,
                 description=_("link's url"))
    description = RichString(fulltextindexed=True,
Adrien Di Mascio's avatar
Adrien Di Mascio committed
                             description=_("description of the linked page's content"))