[Checkins] SVN: z3c.i18n/trunk/src/z3c/i18n/iso.py declare
interface of vocabs
Bernd Dorn
bernd.dorn at fhv.at
Fri Sep 8 06:01:51 EDT 2006
Log message for revision 70046:
declare interface of vocabs
Changed:
U z3c.i18n/trunk/src/z3c/i18n/iso.py
-=-
Modified: z3c.i18n/trunk/src/z3c/i18n/iso.py
===================================================================
--- z3c.i18n/trunk/src/z3c/i18n/iso.py 2006-09-08 10:01:11 UTC (rev 70045)
+++ z3c.i18n/trunk/src/z3c/i18n/iso.py 2006-09-08 10:01:50 UTC (rev 70046)
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from zope.schema.vocabulary import SimpleVocabulary,SimpleTerm
+from zope.schema.interfaces import IVocabularyFactory
from zope.i18n.locales import locales,LOCALEDIR
from zope.i18nmessageid.message import MessageFactory
from zope.i18n.interfaces import ITranslationDomain,INegotiator
@@ -114,6 +115,8 @@
True
"""
+ implements(IVocabularyFactory)
+
def __init__(self):
self.terms = []
# excluding fallback etc
@@ -161,6 +164,8 @@
u'Deutschland'
"""
+ implements(IVocabularyFactory)
+
def __init__(self):
self.terms = []
# excluding fallback etc
More information about the Checkins
mailing list