from zope.interface import Interface
from zope.schema import Bool, Iterable, TextLine

class IPortalObject(Interface):
    pass

class ISyndicationPolicy(Interface):

    syndicationAllowed = Bool(
        title=u"Is syndication allowed",
        description=u"Flags whether syndication is allowed",
        required=True,
        readonly=True
        )

    siteSyndicationAllowed = Bool(
        title=u"Is site syndication allowed",
        description=u"Flags whether site syndication is allowed",
        required=True,
        readonly=True
        )

    syndicatableContent = Iterable(
        title=u"Syndicatable Content",
        description=u"An iterable containing syndicatable content objects",
        required=True,
        readonly=True
        )

    updateBase = TextLine(
        title=u"Update base",
        description=u"Date of the last update, in HTML4 format",
        required=True,
        readonly=True
        )
