Author: jmorliaguet Date: Wed Jun 28 21:57:06 2006 New Revision: 3548 Modified: cpsskins/branches/paris-sprint-2006/locations/sources.py
Log: - use str(value) as token Modified: cpsskins/branches/paris-sprint-2006/locations/sources.py ============================================================================== --- cpsskins/branches/paris-sprint-2006/locations/sources.py (original) +++ cpsskins/branches/paris-sprint-2006/locations/sources.py Wed Jun 28 21:57:06 2006 @@ -32,10 +32,10 @@ """A vocabulary that contains a list of scopes """ return SimpleVocabulary( - [SimpleTerm(value, token, title) for value, token, title in ( - ((0, 0), u'0-0', _(u"there and in all sub-folders")), - ((0, 1), u'0-1', _(u"only there")), - ((1, 0), u'1-0', _(u"in all sub-folders")), + [SimpleTerm(value, title=title) for value, title in ( + ((0, 0), _(u"there and in all sub-folders")), + ((0, 1), _(u"only there")), + ((1, 0), _(u"in all sub-folders")), )]) alsoProvides(scopesVocabulary, IVocabularyFactory) -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins