Did I find the right examples for you? yes no

All Samples(81)  |  Call(0)  |  Derive(0)  |  Import(81)
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.ExternalStorage-0.8.1/Products/ExternalStorage/example/ExternalExample/__init__.py   Products.ExternalStorage(Download)
from Products.CMFCore.utils import ContentInit
from Products.CMFCore.DirectoryView import registerDirectory
from Products.Archetypes.public import process_types, listTypes
 
from config import SKINS_DIR, GLOBALS, PROJECTNAME
 
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME), PROJECTNAME)
 
    ContentInit(

src/e/x/example.archetype-1.0/example/archetype/__init__.py   example.archetype(Download)
def initialize(context):
 
    content_types, constructors, ftis = process_types(
             listTypes(config.PROJECTNAME), 
             config.PROJECTNAME)
 
    allTypes = zip(content_types, constructors)
    for atype, constructor in allTypes:
        kind = "%s: %s" % (config.PROJECTNAME, atype.portal_type)

src/p/r/Products.CMFContentPanels-2.6b2/Products/CMFContentPanels/__init__.py   Products.CMFContentPanels(Download)
from ContentPanelsTool import ContentPanelsTool
from config import SKINS_DIR, GLOBALS,VIEWLETS
from config import PROJECTNAME, ADD_CONTENT_PERMISSION
from config import MessageFactory
 
def initialize(context):
 
    import ContentPanels
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)

src/p/r/Products.ATCountryWidget-0.2.6/src/Products/ATCountryWidget/__init__.py   Products.ATCountryWidget(Download)
 
# siblings
from config import SKINS_DIR, GLOBALS, PROJECTNAME, access_contents_information, INSTALL_DEMO_TYPE
from validators import CountryValidator
 
 
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)
 

src/p/r/Products.CMFContentPanels-HEAD/Products/CMFContentPanels/__init__.py   Products.CMFContentPanels(Download)
from ContentPanelsTool import ContentPanelsTool
from config import SKINS_DIR, GLOBALS,VIEWLETS
from config import PROJECTNAME, ADD_CONTENT_PERMISSION
from config import MessageFactory
 
def initialize(context):
 
    import ContentPanels
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)

src/p/r/Products.ATFlashMovie-1.1/Products/ATFlashMovie/__init__.py   Products.ATFlashMovie(Download)
from Products.CMFCore.DirectoryView import registerDirectory
 
from config import SKINS_DIR, GLOBALS, PROJECTNAME, ADD_CONTENT_PERMISSION, I18N_DOMAIN
 
FlashMovieMessageFactory = MessageFactory(I18N_DOMAIN)
 
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)
 

src/z/e/ZenPacks.lbn.ZopeMonitor-4.0.2/ZenPacks/lbn/ZopeMonitor/setuphandlers.py   ZenPacks.lbn.ZopeMonitor(Download)
import logging
from Acquisition import aq_base
from config import PROJECTNAME, MUNIN_THREADS, MUNIN_CACHE, MUNIN_ZODB, MUNIN_MEMORY
from lbn.zenoss.packutils import addZenPackObjects
from Products.ZenEvents.EventClass import manage_addEventClass
from Products.ZenModel.RRDTemplate import manage_addRRDTemplate
 
from datasources import ZopeThreadsDataSource, ZopeMemoryDataSource, ZopeCacheDataSource, ZopeDBActivityDataSource
 
logger = logging.getLogger(PROJECTNAME)

src/p/r/Products.croppingimage-0.2rc2/Products/croppingimage/__init__.py   Products.croppingimage(Download)
 
# Product imports
from config import GLOBALS, PROJECTNAME, SKINS_DIR
 
registerDirectory(SKINS_DIR, GLOBALS)
 
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)
 
    allTypes = zip(content_types, constructors)
    for atype, constructor in allTypes:
        kind = "%s: %s" % (PROJECTNAME, atype.archetype_name)
        utils.ContentInit(
            kind,

src/p/r/Products.croppingimage-0.2rc2/Products/croppingimage/croppingimage.py   Products.croppingimage(Download)
# Product imports
from schema import cropping_image_schema
from config import PROJECTNAME, CROPPING_IMAGE_TYPE, LONG_NAME, DESIRED_WIDTH, DESIRED_HEIGHT
 
import permissions as perms
 
 
registerType(CroppingImage, PROJECTNAME)
 

src/p/r/Products.UpfrontContacts-0.6/Products/UpfrontContacts/__init__.py   Products.UpfrontContacts(Download)
from Products.Archetypes.public import process_types, listTypes
from Products.CMFCore.utils import ContentInit, ToolInit
from Products.CMFCore.DirectoryView import registerDirectory
 
from config import SKINS_DIR, GLOBALS, PROJECTNAME
 
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next