Skip to content
Snippets Groups Projects
schema.py 486 B
Newer Older
Sylvain Thénault's avatar
Sylvain Thénault committed
from yams.buildobjs import EntityType, RelationType, String, Boolean, RichString
Nicolas Chauvat's avatar
Nicolas Chauvat committed

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,
Nicolas Chauvat's avatar
Nicolas Chauvat committed
                 description=_("link's url"))
    description = RichString(fulltextindexed=True,
Nicolas Chauvat's avatar
Nicolas Chauvat committed
                         description=_("description of the linked page's content"))