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

All Samples(17)  |  Call(10)  |  Derive(0)  |  Import(7)

src/p/r/Products.CMFPlomino-1.18.6/Products/CMFPlomino/migration/migration.py   Products.CMFPlomino(Download)
from Acquisition import aq_base
from OFS.Image import manage_addImage
from Products.BTreeFolder2.BTreeFolder2 import manage_addBTreeFolder
from Products.PythonScripts.PythonScript import manage_addPythonScript
from Products.PythonScripts.PythonScript import PythonScript
    # plomino_documents might exist if the migration runs after an XML import
    if 'plomino_documents' not in db.objectIds():
        manage_addBTreeFolder(db, id='plomino_documents')
    directlyProvides(db.plomino_documents, IHideFromBreadcrumbs)
    docids = [id for id in db.objectIds() 

src/p/l/Plomino-HEAD/Products/CMFPlomino/migration/migration.py   Plomino(Download)
from Acquisition import aq_base
from OFS.Image import manage_addImage
from Products.BTreeFolder2.BTreeFolder2 import manage_addBTreeFolder
from Products.PythonScripts.PythonScript import manage_addPythonScript
from Products.PythonScripts.PythonScript import PythonScript
    # plomino_documents might exist if the migration runs after an XML import
    if 'plomino_documents' not in db.objectIds():
        manage_addBTreeFolder(db, id='plomino_documents')
    directlyProvides(db.plomino_documents, IHideFromBreadcrumbs)
    docids = [id for id in db.objectIds() 

src/b/a/babble.server-1.1/babble/server/browser/service.py   babble.server(Download)
from Acquisition import aq_base
from Products.BTreeFolder2.BTreeFolder2 import manage_addBTreeFolder
from babble.server.service import ChatService
from babble.server import UseChatService
 
 
            aq_base(obj).manage_addUserFolder()
            manage_addBTreeFolder(aq_base(obj), 'conversations', 'Conversations')
            manage_addBTreeFolder(aq_base(obj), 'chatrooms', 'ChatRooms')
 

src/b/a/babble.server-1.1/babble/server/service.py   babble.server(Download)
from OFS.Folder import Folder
 
from Products.BTreeFolder2.BTreeFolder2 import manage_addBTreeFolder
 
from interfaces import IChatService
            log.warn("The chatservice's 'ChatRooms' folder did not exist, "
                    "and has been automatically recreated.")
            manage_addBTreeFolder(self, 'chatrooms', 'ChatRooms')
 
        return self._getOb('chatrooms')
            log.warn("The chatservice's 'Conversations' folder did not exist, "
                    "and has been automatically recreated.")
            manage_addBTreeFolder(self, 'conversations', 'Conversations')
 
        return self._getOb('conversations')

src/b/a/babble.server-1.1/babble/server/Extensions/upgrade_to_1_0.py   babble.server(Download)
from zExceptions import BadRequest
from DateTime.interfaces import IDateTime
from Products.BTreeFolder2.BTreeFolder2 import manage_addBTreeFolder
from babble.server.conversation import Conversation
from babble.server.interfaces import IChatService
 
        if not hasattr(service, 'conversations'):
            manage_addBTreeFolder(service, 'conversations', 'Conversations')
        convs = service._getOb('conversations')
 

src/p/r/Products.PloneInvite-1.1.6/Products/PloneInvite/PloneInvite.py   Products.PloneInvite(Download)
from Products.ZCatalog.ZCatalog import manage_addZCatalog
from Products.ZCatalog.CatalogPathAwareness import CatalogPathAware
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2, manage_addBTreeFolder
from random import randint
from DateTime import DateTime 
        self.manage_addProperty('days', '7', 'int')
        self.manage_addProperty('plone_invite_email_address', '', 'string')
        manage_addBTreeFolder(self, 'invites', 'Invites')
 
    security.declarePrivate('_updateCatalog')

src/b/a/babble.server-1.1/babble/server/tests/stress_test.py   babble.server(Download)
    app._setObject('chatservice', ChatService('chatservice'))
    cs = app._getOb('chatservice')
    from Products.BTreeFolder2.BTreeFolder2 import manage_addBTreeFolder
    manage_addBTreeFolder(cs, 'users', 'Users')
    manage_addBTreeFolder(cs, 'conversations', 'Conversations')