Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(55) | Call(42) | Derive(0) | Import(13)
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Field.py Products.Archetypes(Download)
from Products.Archetypes.log import log from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import IntDisplayList from Products.Archetypes.utils import Vocabulary from Products.Archetypes.utils import className
data = [(t.value, t.title or t.token) for t in factory(factory_context)] if data and not isinstance(data[0][0], basestring): value = IntDisplayList(data) else: value = DisplayList(data)
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Field.py Products.Archetypes(Download)
from Products.Archetypes.log import log from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import IntDisplayList from Products.Archetypes.utils import Vocabulary from Products.Archetypes.utils import className
data = [(t.value, t.title or t.token) for t in factory(factory_context)] if data and not isinstance(data[0][0], basestring): value = IntDisplayList(data) else: value = DisplayList(data)
src/p/r/Products.PloneSurvey-1.4.6/Products/PloneSurvey/config.py Products.PloneSurvey(Download)
PROJECTNAME = "Products.PloneSurvey" from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import IntDisplayList from Products.validation import validation
)) TEXT_LOCATION = IntDisplayList(( (0, _(u'label_does_not_appear', default=u'Does not appear')), (1, _(u'label_appears_above_question', default=u'Appears above question')),
)) LIKERT_OPTIONS = IntDisplayList(( (0, _(u'label_use_options_below', default=u'Use the options below')), (1, _(u'list_good_poor', default=u'("Very Good", "Good", "OK Only", "Poor", "Very Poor")')),
LIKERT_OPTIONS_MAP = { 1 : IntDisplayList(( (5, _(u'Very Good', default=u'Very Good')), (4, _(u'Good', default=u'Good')), (3, _(u'OK Only', default=u'OK Only')), (2, _(u'Poor', default=u'Poor')), (1, _(u'Very Poor', default=u'Very Poor')), )), 2 : IntDisplayList((
src/p/4/p4a.ploneevent-0.7.4/p4a/ploneevent/recurrence/schemaextender.py p4a.ploneevent(Download)
from dateutil.rrule import YEARLY, MONTHLY, WEEKLY, DAILY from p4a.ploneevent import PloneEventMessageFactory as _ from Products.Archetypes.utils import IntDisplayList class TextField(ExtensionField, atapi.TextField): pass
pass freqDisplayList = IntDisplayList([(-1, _(u'Does not repeat')), (YEARLY, _(u'Yearly')), (MONTHLY, _(u'Monthly')),
src/p/r/Products.eXtremeManagement-2.1a7/Products/eXtremeManagement/content/schemata.py Products.eXtremeManagement(Download)
from Products.Archetypes.utils import IntDisplayList quarter_vocabulary = IntDisplayList( [(0, '0'), (15, '15'), (30, '30'), (45, '45')]) hour_vocabulary = IntDisplayList([
src/r/g/rg.prenotazioni-2.1/rg/prenotazioni/content/prenotazionifolder.py rg.prenotazioni(Download)
from Products.ATContentTypes.configuration import zconf from Products.Archetypes import atapi from Products.Archetypes.utils import DisplayList, IntDisplayList from Products.DataGridField import DataGridField, DataGridWidget from Products.DataGridField.DataGridField import FixedRow
def vocDurataIncontro(self): """ """ return IntDisplayList([(x, x) for x in range(10, 95, 5)])
src/p/r/Products.CalendarX-1.0.4/Products/CalendarX/CalendarXFolder.py Products.CalendarX(Download)
from Products.Archetypes.BaseFolder import BaseFolder from Products.Archetypes.interfaces import IBaseFolder, IBaseObject, IReferenceable from Products.Archetypes.utils import IntDisplayList from Products.CalendarX.config import *
), schemata="Calendar Options", vocabulary=IntDisplayList([(0, "Sunday"), (1, "Monday"), (2, "Tuesday"), (3, "Wednesday"), (4, "Thursday"), (5, "Friday"), (6, "Saturday",)]), default=0, ),
src/r/a/raptus.article.maps-2.0b18/raptus/article/maps/content/map.py raptus.article.maps(Download)
"""Definition of the Map content type """ from zope.interface import implements from Products.Archetypes.utils import IntDisplayList
languageIndependent=True, enforceVocabulary=True, vocabulary=IntDisplayList([(i, str(i),) for i in range(0, 20)]), default=10, storage = atapi.AnnotationStorage(),
src/p/l/plonehrm.contracts-2.6/plonehrm/contracts/content/contract.py plonehrm.contracts(Download)
from Acquisition import aq_chain, aq_inner from DateTime import DateTime from Products.Archetypes.utils import IntDisplayList from Products.Archetypes.interfaces import IBaseContent from Products.Archetypes.atapi import BaseContent
def _trial_period_vocabulary(self): """Vocabulary for the trialPeriod field """ return IntDisplayList([(0, '0'), (1, '1'), (2, '2')])
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/atapi.py Products.Archetypes(Download)
# misc from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import IntDisplayList from Products.Archetypes.utils import Vocabulary from Products.Archetypes.ClassGen import AT_GENERATE_METHOD
1 | 2 Next