[z3-checkins] r28617 - z3/Sfive/trunk
philikon at codespeak.net
philikon at codespeak.net
Sat Jun 10 16:29:53 CEST 2006
Author: philikon
Date: Sat Jun 10 16:29:47 2006
New Revision: 28617
Modified:
z3/Sfive/trunk/interfaces.py
Log:
Make Zope 2.10 compatible: immutable i18n messages (MessageID -> Message)
We'll require reST input from now on so we don't need the choice between
different plain text formats anymore
Modified: z3/Sfive/trunk/interfaces.py
==============================================================================
--- z3/Sfive/trunk/interfaces.py (original)
+++ z3/Sfive/trunk/interfaces.py Sat Jun 10 16:29:47 2006
@@ -1,7 +1,7 @@
from zope.interface import Interface
from zope.schema import TextLine, SourceText, Choice
-from zope.i18n import MessageIDFactory
-_ = MessageIDFactory('sfive')
+from zope.i18nmessageid import MessageFactory
+_ = MessageFactory('sfive')
class IPresentation(Interface):
@@ -36,11 +36,3 @@
description=_(u"Presentation text"),
required=True
)
-
- type = Choice(
- title=_(u"Text type"),
- description=_(u"Type of the text, e.g. structured text"),
- default=u"zope.source.rest",
- required=True,
- vocabulary="SourceTypes"
- )
More information about the z3-checkins
mailing list