Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(65)  |  Call(37)  |  Derive(0)  |  Import(28)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/BaseObject.py   Products.Archetypes(Download)
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
from Products.Archetypes.utils import shasattr
        # handling provided by BaseUnit when its available
        kw = {'raw': 1, 'field': field.__name__}
        value = mapply(accessor, **kw)
        return value
 
            __traceback_info__ = (self, field, mutator)
            result[1]['field'] = field.__name__
            mapply(mutator, result[0], **result[1])
 
        self.reindexObject()
                try:
                    args = [value]
                    mapply(mutator, *args, **kw)
                    return
                except (ConflictError, KeyboardInterrupt):

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/BaseObject.py   Products.Archetypes(Download)
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
from Products.Archetypes.utils import shasattr
        # handling provided by BaseUnit when its available
        kw = {'raw': 1, 'field': field.__name__}
        value = mapply(accessor, **kw)
        return value
 
            __traceback_info__ = (self, field, mutator)
            result[1]['field'] = field.__name__
            mapply(mutator, result[0], **result[1])
 
        self.reindexObject()
                try:
                    args = [value]
                    mapply(mutator, *args, **kw)
                    return
                except (ConflictError, KeyboardInterrupt):

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Field.py   Products.Archetypes(Download)
from Products.Archetypes.utils import Vocabulary
from Products.Archetypes.utils import className
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
from Products.Archetypes.utils import contentDispositionHeader
                    kw = {'content_instance': content_instance,
                          'field': self}
                    value = mapply(method, *args, **kw)
            elif content_instance is not None and \
                 IVocabulary.providedBy(value):
        if accessor is None:
            args = [instance]
            return mapply(self.get, *args, **kwargs)
        return mapply(accessor, **kwargs)
 
              'instance': instance}
        args = []
        return mapply(value.getRaw, *args, **kw)
 
    security.declarePrivate('get')

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Field.py   Products.Archetypes(Download)
from Products.Archetypes.utils import Vocabulary
from Products.Archetypes.utils import className
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
from Products.Archetypes.utils import contentDispositionHeader
                    kw = {'content_instance': content_instance,
                          'field': self}
                    value = mapply(method, *args, **kw)
            elif content_instance is not None and \
                 IVocabulary.providedBy(value):
        if accessor is None:
            args = [instance]
            return mapply(self.get, *args, **kwargs)
        return mapply(accessor, **kwargs)
 
              'instance': instance}
        args = []
        return mapply(value.getRaw, *args, **kw)
 
    security.declarePrivate('get')

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Schema/__init__.py   Products.Archetypes(Download)
from Products.Archetypes.interfaces.schema import ISchema, ISchemata, \
     IManagedSchema
from Products.Archetypes.utils import OrderedDict, mapply, shasattr
from Products.Archetypes.mimetype_utils import getDefaultContentType
from Products.Archetypes.exceptions import SchemaException
                    default_content_type = getDefaultContentType(instance)
                kw['mimetype'] = default_content_type
            mapply(mutator, *args, **kw)
 
    security.declareProtected(permissions.ModifyPortalContent,

src/p/r/Products.LinguaPlone-4.1.3/Products/LinguaPlone/I18NBaseObject.py   Products.LinguaPlone(Download)
from Products.Archetypes.config import UID_CATALOG
from Products.Archetypes.interfaces import IMultiPageSchema
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
from Products.CMFCore.utils import getToolByName
            __traceback_info__ = (self, field, mutator)
            result[1]['field'] = field.__name__
            mapply(mutator, result[0], **result[1])
 
        self.reindexObject()

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Schema/__init__.py   Products.Archetypes(Download)
from Products.Archetypes.interfaces.schema import ISchema, ISchemata, \
     IManagedSchema
from Products.Archetypes.utils import OrderedDict, mapply, shasattr
from Products.Archetypes.mimetype_utils import getDefaultContentType
from Products.Archetypes.exceptions import SchemaException
                    default_content_type = getDefaultContentType(instance)
                kw['mimetype'] = default_content_type
            mapply(mutator, *args, **kw)
 
    security.declareProtected(permissions.ModifyPortalContent,

src/p/r/Products.LinguaPlone-HEAD/Products/LinguaPlone/I18NBaseObject.py   Products.LinguaPlone(Download)
from Products.Archetypes.config import UID_CATALOG
from Products.Archetypes.interfaces import IMultiPageSchema
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
from Products.CMFCore.utils import getToolByName
            __traceback_info__ = (self, field, mutator)
            result[1]['field'] = field.__name__
            mapply(mutator, result[0], **result[1])
 
        self.reindexObject()

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/WebDAVSupport.py   Products.Archetypes(Download)
from Products.Archetypes.event import WebDAVObjectInitializedEvent
from Products.Archetypes.event import WebDAVObjectEditedEvent
from Products.Archetypes.utils import shasattr, mapply
from zope.interface import implements, Interface
 
              'REQUEST': REQUEST,
              'RESPONSE': RESPONSE}
    ddata = mapply(marshaller.demarshall, *args, **kwargs)
 
    if (shasattr(self, 'demarshall_hook') and self.demarshall_hook):

src/p/r/Products.PloneArticle-4.2.0/Products/PloneArticle/content/article.py   Products.PloneArticle(Download)
from Products.Archetypes.event import ObjectInitializedEvent
from Products.Archetypes.event import ObjectEditedEvent
from Products.Archetypes.utils import mapply
 
try:
                __traceback_info__ = (self, field, mutator)
                result[1]['field'] = field.__name__
                mapply(mutator, result[0], **result[1])
 
            self.reindexObject()        

  1 | 2 | 3  Next