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

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/__init__.py   Products.salesforcepfgadapter(Download)
from Products.CMFCore.DirectoryView import registerDirectory
 
from Products.salesforcepfgadapter.config import PROJECTNAME, GLOBALS, \
    SFA_ADD_CONTENT_PERMISSION
from Products.PloneFormGen.config import ADD_CONTENT_PERMISSION, SKINS_DIR
    # This approach borrowed from ATContentTypes
    #
    listOfTypes = listTypes(PROJECTNAME)
 
    content_types, constructors, ftis = process_types(
        listOfTypes,
        PROJECTNAME)
    allTypes = zip(content_types, constructors)
    for atype, constructor in allTypes:
        kind = "%s: %s" % (PROJECTNAME, atype.archetype_name)

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/content/salesforcepfgadapter.py   Products.salesforcepfgadapter(Download)
 
# Local imports
from Products.salesforcepfgadapter.config import PROJECTNAME, REQUIRED_MARKER, SF_ADAPTER_TYPES
from Products.salesforcepfgadapter import SalesforcePFGAdapterMessageFactory as _
from Products.salesforcepfgadapter import HAS_PLONE25, HAS_PLONE30
        ATCTContent.processForm(self, data, metadata, REQUEST, values)
 
registerATCT(SalesforcePFGAdapter, PROJECTNAME)
 
try:

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/Extensions/Install.py   Products.salesforcepfgadapter(Download)
from Products.salesforcepfgadapter.config import PROJECTNAME
from Products.salesforcepfgadapter import HAS_PLONE30
 
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone.utils import versionTupleFromString
def _productNeedsMigrationTo10RC1(qi_tool):
    # was the product ever installed?
    if hasattr(qi_tool, PROJECTNAME):
        # get needed info about the version that was intalled
        installedProduct = getattr(qi_tool, PROJECTNAME)
def _productNeedsMigrationTo15a1(qi_tool):
    # was the product ever installed?
    if hasattr(qi_tool, PROJECTNAME):
        # get needed info about the version that was intalled
        installedProduct = getattr(qi_tool, PROJECTNAME)