Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/p/r/Products.remember-1.9.3/Products/remember/__init__.py   Products.remember(Download)
    # Ask Archetypes to handback all the type information needed
    # to make the CMF happy.
    types = atapi.listTypes(config.PROJECT_NAME)
    content_types, constructors, ftis = \
        atapi.process_types(types, config.PROJECT_NAME)
    allTypes = zip(content_types, constructors)
    for atype, constructor in allTypes:
        kind = "%s: %s" % (config.PROJECT_NAME, atype.archetype_name)
        cmf_utils.ContentInit(
            kind,

src/p/r/Products.qPloneDropDownMenu-3.0/Products/qPloneDropDownMenu/DropDownMenuTool.py   Products.qPloneDropDownMenu(Download)
 
from utils import updateMenu
from config import MANAGE_PERMISSION, PROJECT_NAME, UNIQUE_ID
 
 

src/p/r/Products.remember-1.9.3/Products/remember/permissions.py   Products.remember(Download)
def initialize():
    permissions = {}
    types = atapi.listTypes(config.PROJECT_NAME)
    for atype in types:
        portal_type = atype['portal_type']
        permission = ADD_PERMISSIONS.get(portal_type, None)
        if permission is None:
            # construct a permission on the fly
            permission = "%s: Add %s" % (config.PROJECT_NAME,

src/r/a/raptus.multilanguagefields-1.1b8/raptus/multilanguagefields/__init__.py   raptus.multilanguagefields(Download)
#from raptus.multilanguagefields import config    
import config
LOG = logging.getLogger(config.PROJECT_NAME)
 
from zope.i18nmessageid import MessageFactory
        LOG.info('demo types initialization for tests purpose') 
        # Initialize demo types for tests only
        type_list = listTypes(config.PROJECT_NAME)
        content_types, constructors, ftis = process_types(type_list, config.PROJECT_NAME)
 
        # Assign an own permission to all content types
        all_types = zip(content_types, constructors)
        for atype, constructor in all_types:
            kind = "%s: %s" % (config.PROJECT_NAME, atype.archetype_name)

src/r/a/raptus.multilanguagefields-1.1b8/raptus/multilanguagefields/permissions.py   raptus.multilanguagefields(Download)
 
# Products imports
from config import PROJECT_NAME
 
TYPE_ROLES = ('Manager', 'Owner')
 
    global permissions
    all_types = listTypes(PROJECT_NAME)
    for atype in all_types:
        permission = "%s: Add %s" % (PROJECT_NAME, atype['portal_type'])

src/p/r/Products.CacheSetup-1.2.1/Products/CacheSetup/__init__.py   Products.CacheSetup(Download)
    # Ask Archetypes to handback all the type information needed
    # to make the CMF happy.
    types = atapi.listTypes(config.PROJECT_NAME)
    content_types, constructors, ftis = \
        atapi.process_types(types, config.PROJECT_NAME)

src/p/r/Products.CacheSetup-1.2.1/Products/CacheSetup/permissions.py   Products.CacheSetup(Download)
def initialize():
    permissions = {}
    types = atapi.listTypes(config.PROJECT_NAME)
    for atype in types:
        portal_type = atype['portal_type']
        permission = ADD_PERMISSIONS.get(portal_type, None)
        if permission is None:
            # construct a permission on the fly
            permission = "%s: Add %s" % (config.PROJECT_NAME,

src/p/r/Products.CMFNotification-2.3b1/Products/CMFNotification/permissions.py   Products.CMFNotification(Download)
from AccessControl.SecurityInfo import ModuleSecurityInfo
from Products.CMFCore.permissions import setDefaultRoles
from config import PROJECT_NAME
 
security = ModuleSecurityInfo(PROJECT_NAME)

src/a/r/archetypes.ldapstorage-0.1a1/archetypes/ldapstorage/__init__.py   archetypes.ldapstorage(Download)
    import examples.ExampleContent2
 
    project_name = config.PROJECT_NAME
 
    # Process the project's types

src/r/a/raptus.multilanguagepfg-1.0b3/raptus/multilanguagepfg/__init__.py   raptus.multilanguagepfg(Download)
import logging
import config
LOG = logging.getLogger(config.PROJECT_NAME)