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

All Samples(18)  |  Call(11)  |  Derive(0)  |  Import(7)

src/e/r/erp5-HEAD/product/ERP5Type/Base.py   erp5(Download)
from Products.ERP5Type.mixin.property_translatable import PropertyTranslatableBuiltInDictMixIn
from Products.ERP5Type.XMLExportImport import Base_asXML
from Products.ERP5Type.Cache import CachingMethod, clearCache, getReadOnlyTransactionCache
from Accessor import WorkflowState
from Products.ERP5Type.Log import log as unrestrictedLog

src/e/r/erp5-HEAD/product/ERP5/Document/WebSection.py   erp5(Download)
from Products.CMFCore.utils import _setCacheHeaders, _ViewEmulator
 
from Products.ERP5Type.Cache import getReadOnlyTransactionCache
 
# Global keys used for URL generation
          WebSection_getDefaultDocumentValue
      """
      cache = getReadOnlyTransactionCache()
      if cache is not None:
        key = ('getDefaultDocumentValue', self)
          WebSection_getDocumentValueList
      """
      cache = getReadOnlyTransactionCache()
      if cache is not None:
        key = ('getDocumentValueList', self) + tuple(kw.items())
        opened in a browser (ie. + '/view' for ooo documents)
      """
      cache = getReadOnlyTransactionCache()
      if cache is not None:
        key = ('getPermanentURL', self, document.getPath())
      if document is None:
        document = self
      cache = getReadOnlyTransactionCache()
      if cache is not None:
        key = ('getBreadcrumbItemList', self, document.getPath())

src/e/r/erp5-HEAD/bt5/erp5_email_reader/DocumentTemplateItem/portal_components/document.erp5.EmailReader.py   erp5(Download)
from Products.ERP5.Document.ExternalSource import ExternalSource
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.Cache import getReadOnlyTransactionCache
 
# IMAP imports
      XXX Add read only transaction cache
    """
    cache = getReadOnlyTransactionCache()
    if cache is not None:
      key = ('getMessageFolderList', self)
      the variable
    """
    cache = getReadOnlyTransactionCache()
    if cache is not None:
      key = ('_getMailServer', self)

src/e/r/erp5-HEAD/product/CMFCategory/CategoryTool.py   erp5(Download)
from Products.ERP5Type import Permissions
from Products.ERP5Type.Base import Base
from Products.ERP5Type.Cache import getReadOnlyTransactionCache
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.CMFCategory import _dtmldir
        and optionnal base category id
      """
      cache = getReadOnlyTransactionCache()
      if cache is not None:
        key = ('getCategoryValue', relative_url, base_category)
    def getSingleCategoryAcquiredMembershipList(self, context, base_category, base=0,
                                         spec=(), filter=None, _acquired_object_set=None, **kw ):
      cache = getReadOnlyTransactionCache()
      if cache is not None:
        key = ('getSingleCategoryAcquiredMembershipList', context.getPhysicalPath(), base_category, base, spec,
          # Handle parent base category is a special way
          return relative_url
        cache = getReadOnlyTransactionCache()
        if cache is not None:
          cache_key = ('resolveCategory', relative_url)

src/e/r/erp5-HEAD/product/ERP5/mixin/extensible_traversable.py   erp5(Download)
from AccessControl import Unauthorized
from Products.ERP5Type.ExtensibleTraversable import ExtensibleTraversableMixIn
from Products.ERP5Type.Cache import getReadOnlyTransactionCache
from AccessControl import ClassSecurityInfo, getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager, setSecurityManager
  def _forceIdentification(self, request):
    # force identification (usable for extensible content)
    cache = getReadOnlyTransactionCache()
    if cache is not None:
      key = ('__bobo_traverse__', self, 'user')

src/e/r/erp5-HEAD/product/ERP5/Document/Document.py   erp5(Download)
                                    deprecated, guessEncodingFromText
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.Cache import getReadOnlyTransactionCache
from Products.ERP5.Tool.ContributionTool import MAX_REPEAT
from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery

src/e/r/erp5-HEAD/product/ERP5Type/Utils.py   erp5(Download)
    PropertyConstantGetter
from Products.ERP5Type.Accessor.Constant import Getter as ConstantGetter
from Products.ERP5Type.Cache import getReadOnlyTransactionCache
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from zLOG import LOG, BLATHER, PROBLEM, WARNING, INFO, TRACE