interfaces.py
2008-01-11 19:05...
"""Note interface
Interfaces for the Zope 3 based Note package
$Id: interfaces.py 13472 2007-12-03 14:11:14Z cray $
"""
from zope.interface import Interface
from zope.schema import Text, TextLine, Datetime
from datetime import datetime
class INote(Interface):
"""A note object."""
title = TextLine(
title=u"Title/Subject",
description=u"Title and/or subject of the message.",
default=u"",
required=True)
body = Text(
title=u"Note Body",
description=u"This is the actual note. Type whatever you wish.",
default=u"",
required=False)
datetime = Datetime(
title = u"Activation Time and Date",
required=False,
default=datetime.today())



