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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/f/t/ftw.inflator-1.3.2/ftw/inflator/tests/test_dx_content_creation.py   ftw.inflator(Download)
from Products.CMFCore.utils import getToolByName
from ftw.inflator.testing import INFLATOR_FIXTURE
from ftw.inflator.tests.interfaces import IFoo
from persistent.list import PersistentList
from persistent.mapping import PersistentMapping
class DXCreationLayer(PloneSandboxLayer):
 
    defaultBases = (INFLATOR_FIXTURE, )
 
    def setUpZope(self, app, configurationContext):

src/f/t/ftw.inflator-1.3.2/ftw/inflator/tests/test_content_creation.py   ftw.inflator(Download)
from Products.ATContentTypes.lib import constraintypes
from Products.CMFCore.utils import getToolByName
from ftw.inflator.testing import INFLATOR_FIXTURE
from ftw.inflator.tests.interfaces import IFoo
from persistent.list import PersistentList
class FooCreationLayer(PloneSandboxLayer):
 
    defaultBases = (INFLATOR_FIXTURE, )
    def setUpPloneSite(self, portal):
        wftool = getToolByName(portal, 'portal_workflow')