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

All Samples(149)  |  Call(90)  |  Derive(18)  |  Import(41)
BTreeFolder2 based on OFS.Folder.
    

src/i/n/intranett-HEAD/src/intranett.policy/intranett/policy/tools.py   intranett(Download)
from OFS.Image import Image
from PIL import Image as PILImage
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.interfaces import ISiteRoot
    def __init__(self):
        super(MemberDataTool, self).__init__()
        self.thumbnails = BTreeFolder2(id='thumbnails')
 
    def _getPortrait(self, member_id, thumbnail=False):

src/p/r/Products.PlonePAS-5.0/Products/PlonePAS/tools/memberdata.py   Products.PlonePAS(Download)
from zope.interface import implements
 
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2
from Products.CMFCore.permissions import ManagePortal
from Products.CMFCore.utils import getToolByName
    def __init__(self):
        BaseTool.__init__(self)
        self.portraits = BTreeFolder2(id='portraits')
 
    def _getPortrait(self, member_id):

src/p/r/Products.PlonePAS-HEAD/Products/PlonePAS/tools/memberdata.py   Products.PlonePAS(Download)
from zope.interface import implements
 
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2
from Products.CMFCore.permissions import ManagePortal
from Products.CMFCore.utils import getToolByName
    def __init__(self):
        BaseTool.__init__(self)
        self.portraits = BTreeFolder2(id='portraits')
 
    def _getPortrait(self, member_id):

src/p/l/plone.resource-1.0.2/plone/resource/directory.py   plone.resource(Download)
from OFS.Image import File
from OFS.interfaces import IObjectManager
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2
from Products.CMFCore.utils import getToolByName
from StringIO import StringIO
                if isinstance(name, unicode):
                    name = name.encode('utf-8')
                f = BTreeFolder2(name)
                parent._setOb(name, f)
            parent = parent[name]

src/p/l/plone.resource-HEAD/plone/resource/directory.py   plone.resource(Download)
from OFS.Image import File
from OFS.interfaces import IObjectManager
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2
from Products.CMFCore.utils import getToolByName
from StringIO import StringIO
                if isinstance(name, unicode):
                    name = name.encode('utf-8')
                f = BTreeFolder2(name)
                parent._setOb(name, f)
            parent = parent[name]

src/p/r/Products.listen-0.6.4/Products/listen/content/factories.py   Products.listen(Download)
 
from OFS.Folder import Folder
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2 as BTreeFolder
 
from Products.listen.interfaces import IModerationQueue
    def __call__(self, id, title):
        # The queue might get large, and we don't want it showing its
        # contents in navigation
        mqueue = BTreeFolder(id)
        mqueue.title = title
    def __call__(self, id, title, **kwargs):
        if kwargs.get('btree', None):
            folder = BTreeFolder(id)
        else:
            folder = Folder(id)

src/o/p/opencore-listen-0.8.0/Products/listen/content/factories.py   opencore-listen(Download)
 
from OFS.Folder import Folder
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2 as BTreeFolder
 
from Products.listen.interfaces import IModerationQueue
    def __call__(self, id, title):
        # The queue might get large, and we don't want it showing its
        # contents in navigation
        mqueue = BTreeFolder(id)
        mqueue.title = title
    def __call__(self, id, title, **kwargs):
        if kwargs.get('btree', None):
            folder = BTreeFolder(id)
        else:
            folder = Folder(id)

src/e/r/erp5-HEAD/product/ERP5Type/Core/Folder.py   erp5(Download)
  from Products.BTreeFolder2.CMFBTreeFolder import CMFBTreeFolder
 
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2Base, BTreeFolder2
 
try:

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 

src/b/a/babble.server-1.1/babble/server/user.py   babble.server(Download)
import logging
from zope.interface import implements
 
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2
 
class User(BTreeFolder2):
    """ A user on the message server """
 
    implements(IUser)
    _status = 'online'

  1 | 2 | 3 | 4 | 5  Next