Did I find the right examples for you? yes no

All Samples(42)  |  Call(0)  |  Derive(0)  |  Import(42)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

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
from config import ADD_CONTENT_PERMISSION
 
registerDirectory(SKINS_DIR, GLOBALS)

src/p/r/Products.PloneArticle-4.2.0/Products/PloneArticle/examples/mypamodel/__init__.py   Products.PloneArticle(Download)
# We just put the minimal stuff to have our layer registered
from Products.CMFCore import DirectoryView
from config import GLOBALS
 
DirectoryView.registerDirectory('skins', GLOBALS)

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
 
registerDirectory(SKINS_DIR, GLOBALS)

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)
 
registerDirectory(SKINS_DIR, GLOBALS)

src/p/r/Products.CMFContentPanels-2.6b2/Products/CMFContentPanels/__init__.py   Products.CMFContentPanels(Download)
from ContentPanelsTool import registerViewlets
from ContentPanelsTool import ContentPanelsTool
from config import SKINS_DIR, GLOBALS,VIEWLETS
from config import PROJECTNAME, ADD_CONTENT_PERMISSION
from config import MessageFactory

src/p/r/Products.CMFContentPanels-HEAD/Products/CMFContentPanels/__init__.py   Products.CMFContentPanels(Download)
from ContentPanelsTool import registerViewlets
from ContentPanelsTool import ContentPanelsTool
from config import SKINS_DIR, GLOBALS,VIEWLETS
from config import PROJECTNAME, ADD_CONTENT_PERMISSION
from config import MessageFactory

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
from config import ADD_CONTENT_PERMISSION
 
import schemapatch
 
registerDirectory(SKINS_DIR, GLOBALS)

src/p/r/Products.MenuNavigation-1.0b2/Products/MenuNavigation/zope2.py   Products.MenuNavigation(Download)
from Products.CMFCore.DirectoryView import registerDirectory
 
from config import SKINS_DIR, GLOBALS, PROJECTNAME
from config import ADD_CONTENT_PERMISSION
 
registerDirectory(SKINS_DIR, GLOBALS)

src/p/r/Products.ArchAddOn-1.7/Products/ArchAddOn/__init__.py   Products.ArchAddOn(Download)
validation.register(SimpleDataGridValidator('isValidGrid'))
 
from config import ADD_CONTENT_PERMISSION, PROJECTNAME, SKINS_DIR, GLOBALS
 
registerDirectory(SKINS_DIR, GLOBALS)

src/p/r/Products.SimplePortlet-1.2/Products/SimplePortlet/__init__.py   Products.SimplePortlet(Download)
import os, os.path, sys
import content
from config import SKINS_DIR, GLOBALS, PROJECTNAME
from config import ADD_CONTENTS_PERMISSION
 
 
 
registerDirectory(SKINS_DIR, GLOBALS)
 
 

  1 | 2 | 3 | 4 | 5  Next