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

All Samples(11)  |  Call(5)  |  Derive(0)  |  Import(6)

src/e/r/erp5-HEAD/product/ERP5/Document/Resource.py   erp5(Download)
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.Base import Base
from Products.ERP5Type.UnrestrictedMethod import unrestricted_apply
 
from Products.ERP5Type.Utils import cartesianProduct
      kw.update(default=default, movement=context, REQUEST=REQUEST)
      return unrestricted_apply(
        self._getTypeBasedMethod('getPriceCalculationOperandDict'), kw=kw)
 
    security.declareProtected(Permissions.AccessContentsInformation,

src/e/r/erp5-HEAD/product/ERP5/Document/Movement.py   erp5(Download)
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.UnrestrictedMethod import unrestricted_apply
from Products.ERP5.mixin.amount_generator import AmountGeneratorMixin
from Products.ERP5.mixin.composition import CompositionMixin
      method = getattr(context, 'Movement_getPriceCalculationOperandDict', None)
    if method is not None:
      operand_dict = unrestricted_apply(method, kw=kw)
      if operand_dict is None:
        return default

src/e/r/erp5-HEAD/product/ERP5/mixin/extensible_traversable.py   erp5(Download)
import sys
from base64 import decodestring
from Products.ERP5Type.UnrestrictedMethod import unrestricted_apply
 
 
    isAuthorizationForced = getattr(self, 'isAuthorizationForced', None)
    if isAuthorizationForced is not None and isAuthorizationForced():
      if unrestricted_apply(self.getDocumentValue, (name, portal)) is not None:
        # force user to login as specified in Web Section
        raise Unauthorized

src/e/r/erp5-HEAD/product/ERP5/Document/Delivery.py   erp5(Download)
from Products.ERP5.mixin.composition import CompositionMixin
from Products.ERP5.mixin.rule import SimulableMixin
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod, \
    unrestricted_apply
from zLOG import LOG, PROBLEM
      newSecurityManager(None, nobody)
      try:
        unrestricted_apply(self.activate(after_tag=after_tag, **kw)._localBuild)
      finally:
        setSecurityManager(sm)

src/e/r/erp5-HEAD/product/ERP5/Document/WebSection.py   erp5(Download)
from Products.ERP5.mixin.extensible_traversable import DocumentExtensibleTraversableMixin
from Acquisition import aq_base, aq_inner 
from Products.ERP5Type.UnrestrictedMethod import unrestricted_apply
from AccessControl import Unauthorized
from OFS.Traversable import NotFound
            isAuthorizationForced = getattr(self, 'isAuthorizationForced', None)
            if isAuthorizationForced is not None and isAuthorizationForced():
              if unrestricted_apply(self.getDefaultDocumentValue) is not None:
                # force user to login as specified in Web Section
                raise Unauthorized

src/e/r/erp5-HEAD/product/ERP5Type/Tool/PropertySheetTool.py   erp5(Download)
from Products.ERP5Type import Permissions
from Products.ERP5Type.Accessor import Translation
from Products.ERP5Type.UnrestrictedMethod import unrestricted_apply
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.Core.PropertySheet import PropertySheet as PropertySheetDocument