From 8a37852f4824d73560408ec12bd10b7da5110102 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sun, 15 Feb 2009 11:05:28 +0000 Subject: [PATCH] make modification date for media assets editable git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3230 fd906abe-77d9-0310-91a1-e0d9ade77398 --- media/interfaces.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/media/interfaces.py b/media/interfaces.py index 10fb246..0edc337 100644 --- a/media/interfaces.py +++ b/media/interfaces.py @@ -23,12 +23,19 @@ $Id$ """ from zope.interface import Interface, Attribute +from zope.i18nmessageid import MessageFactory +from zope import schema -from loops.interfaces import IExternalFile +_ = MessageFactory('cybertools.media') class IMediaAsset(Interface): + modified = schema.Date( + title=_(u'Date'), + description=_(u'The date/time the picture was taken.'), + required=False,) + def getData(variant=None): """ Return the binary data of the media asset or one of its variants. """