Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(203) | Call(117) | Derive(0) | Import(86)
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Field.py Products.Archetypes(Download)
from Products.Archetypes.ReferenceEngine import Reference from Products.Archetypes.log import log from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import IntDisplayList from Products.Archetypes.utils import Vocabulary
value = IntDisplayList(data) else: value = DisplayList(data) if not isinstance(value, DisplayList):
# if not a 2-tuple value = zip(value, value) value = DisplayList(value) elif len(sample) and isinstance(sample[0], basestring): value = DisplayList(zip(value, value))
__traceback_info__ = (content_instance, self.getName(), pairs) return DisplayList(pairs) security.declarePublic('get_size')
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Field.py Products.Archetypes(Download)
from Products.Archetypes.ReferenceEngine import Reference from Products.Archetypes.log import log from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import IntDisplayList from Products.Archetypes.utils import Vocabulary
value = IntDisplayList(data) else: value = DisplayList(data) if not isinstance(value, DisplayList):
# if not a 2-tuple value = zip(value, value) value = DisplayList(value) elif len(sample) and isinstance(sample[0], basestring): value = DisplayList(zip(value, value))
__traceback_info__ = (content_instance, self.getName(), pairs) return DisplayList(pairs) security.declarePublic('get_size')
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
<p>Thank you</p>''' SURVEY_STATUS = DisplayList(( ('open', _(u'label_survey_open', default=u'Open')), ('closed', _(u'label_survey_closed', default=u'Closed')), )) NOTIFICATION_METHOD = DisplayList((
)) TEXT_INPUT_TYPE = DisplayList(( ('text', _(u'label_text_field', default=u'Text Field')), ('area', _(u'label_text_area', default=u'Text Area')), )) SELECT_INPUT_TYPE = DisplayList((
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/BaseObject.py Products.Archetypes(Download)
from Products.Archetypes import PloneMessageFactory as _ from Products.Archetypes.debug import log_exc from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import mapply from Products.Archetypes.utils import fixSchema
policy = spec.getPolicy(None) return DisplayList(map(lambda x: (x, x), policy.allowedVocabulary())), \ policy.enforceVocabulary()
field.enforceVocabulary if vocab is None: vocab = DisplayList() return vocab, enforce
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/BaseObject.py Products.Archetypes(Download)
from Products.Archetypes import PloneMessageFactory as _ from Products.Archetypes.debug import log_exc from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import mapply from Products.Archetypes.utils import fixSchema
policy = spec.getPolicy(None) return DisplayList(map(lambda x: (x, x), policy.allowedVocabulary())), \ policy.enforceVocabulary()
field.enforceVocabulary if vocab is None: vocab = DisplayList() return vocab, enforce
src/p/r/Products.PloneBooking-3.0.0a2/Products/PloneBooking/content/vocabulary.py Products.PloneBooking(Download)
__docformat__ = 'restructuredtext' from Products.Archetypes.utils import DisplayList CALENDAR_REFRESH_MODES = DisplayList(( ('auto', 'Automatic', 'label_refresh_auto'), ('manual', 'Manual', 'label_refresh_manual'), )) REQUIRED_FILTERS = DisplayList((
('resource', 'Resource', 'label_resource'))) CALENDAR_VIEWS = DisplayList(( ('day', 'Day', 'label_day'), ('week', 'Week', 'label_week'), ('month', 'Month', 'label_month'))) LISTING_VIEWS = DisplayList((
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/ExtensibleMetadata.py Products.Archetypes(Download)
from Products.Archetypes.interfaces import IExtensibleMetadata from Products.Archetypes.log import log from Products.Archetypes.utils import DisplayList, shasattr from Products.Archetypes import config import Persistence
if languages is None: return DisplayList( (('en', 'English'), ('fr', 'French'), ('es', 'Spanish'), ('pt', 'Portuguese'), ('ru', 'Russian'))) else: languages = util.getLanguageListing(combined=use_combined) languages.sort(key=lambda x: x[1]) # Put language neutral at the top. languages.insert(0, (u'', _(u'Language neutral'))) return DisplayList(languages)
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/ExtensibleMetadata.py Products.Archetypes(Download)
from Products.Archetypes.interfaces import IExtensibleMetadata from Products.Archetypes.log import log from Products.Archetypes.utils import DisplayList, shasattr from Products.Archetypes import config import Persistence
if languages is None: return DisplayList( (('en', 'English'), ('fr', 'French'), ('es', 'Spanish'), ('pt', 'Portuguese'), ('ru', 'Russian'))) else: languages = util.getLanguageListing(combined=use_combined) languages.sort(key=lambda x: x[1]) # Put language neutral at the top. languages.insert(0, (u'', _(u'Language neutral'))) return DisplayList(languages)
src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/ArchetypeTool.py Products.Archetypes(Download)
from Products.Archetypes.log import log from Products.Archetypes.utils import findDict from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import mapply from Products.Archetypes.Renderer import renderer
templates = self._templates[portal_type] except KeyError: return DisplayList() # XXX Look this up in the types tool later # self._templates[instance] = ['base_view',]
field.vocabulary = field.Vocabulary(instance) if '' not in field.vocabulary.keys(): field.vocabulary = DisplayList([('', _(u'at_search_any', default=u'<any>'))]) + \ field.vocabulary widget.populate = False
src/p/r/Products.Archetypes-HEAD/Products/Archetypes/ArchetypeTool.py Products.Archetypes(Download)
from Products.Archetypes.log import log from Products.Archetypes.utils import findDict from Products.Archetypes.utils import DisplayList from Products.Archetypes.utils import mapply from Products.Archetypes.Renderer import renderer
templates = self._templates[portal_type] except KeyError: return DisplayList() # XXX Look this up in the types tool later # self._templates[instance] = ['base_view',]
field.vocabulary = field.Vocabulary(instance) if '' not in field.vocabulary.keys(): field.vocabulary = DisplayList([('', _(u'at_search_any', default=u'<any>'))]) + \ field.vocabulary widget.populate = False
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next