Did I find the right examples for you? yes no

All Samples(9)  |  Call(0)  |  Derive(0)  |  Import(9)
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/c/o/collective.anotherdynamicgroupsplugin-0.3/collective/anotherdynamicgroupsplugin/setuphandlers.py   collective.anotherdynamicgroupsplugin(Download)
# coding=utf8
from .config import PACKAGE_NAME, PLUGIN_ID
from .plugin import AnotherDynamicGroupsPlugin
from Products.CMFCore.utils import getToolByName
from Products.PlonePAS.Extensions.Install import activatePluginInterfaces    
from StringIO import StringIO    
 
def import_various(context):
    if context.readDataFile('%s_various.txt' % PACKAGE_NAME) is None:

src/c/o/collective.cmfeditionsdexteritycompat-0.1b8/collective/cmfeditionsdexteritycompat/setuphandlers.py   collective.cmfeditionsdexteritycompat(Download)
# coding=utf8
from .config import PACKAGE_NAME
 
 
def import_various(context):
    if context.readDataFile('%s_various.txt' % PACKAGE_NAME) is None:

src/c/o/collective.dexteritydiff-0.1b4/collective/dexteritydiff/i18n.py   collective.dexteritydiff(Download)
from zope.i18nmessageid import MessageFactory
from .config import PACKAGE_NAME
 
MessageFactory = MessageFactory(PACKAGE_NAME)

src/c/o/collective.anotherdynamicgroupsplugin-0.3/collective/anotherdynamicgroupsplugin/testing.py   collective.anotherdynamicgroupsplugin(Download)
#coding=utf8
from .config import PACKAGE_NAME
from plone.app.testing import IntegrationTesting, PLONE_FIXTURE, PloneSandboxLayer
 
class PackageLayer(PloneSandboxLayer):
 
FIXTURE = PackageLayer()
INTEGRATION_TESTING = IntegrationTesting(bases=(FIXTURE,), name='%s:Integration' % PACKAGE_NAME)
 

src/p/a/paula.testing-0.81/src/paula/testing/tests.py   paula.testing(Download)
# if being called as __main__ (see bottom) - is that needed?
# eventually we could then derive it from path?!
from config import PACKAGE_NAME
 
sg = SuiteGenerator(PACKAGE_NAME)
    ]
 
test_suite = get_test_suite(PACKAGE_NAME, tests)
 
if __name__ == '__main__':

src/c/o/collective.dexteritydiff-0.1b4/collective/dexteritydiff/testing.py   collective.dexteritydiff(Download)
#coding=utf8
from plone.app.testing import (IntegrationTesting, PLONE_FIXTURE, 
    PloneSandboxLayer)
from .config import PACKAGE_NAME
from Products.CMFCore.utils import getToolByName
 
FIXTURE = PackageLayer()
INTEGRATION_TESTING = IntegrationTesting(bases=(FIXTURE,), name='%s:Integration' % PACKAGE_NAME)
 

src/c/o/collective.cmfeditionsdexteritycompat-0.1b8/collective/cmfeditionsdexteritycompat/testing.py   collective.cmfeditionsdexteritycompat(Download)
#coding=utf8
from .config import PACKAGE_NAME
from Products.CMFCore.utils import getToolByName
from Products.CMFDiffTool.TextDiff import TextDiff
from plone.app.testing import (IntegrationTesting, FunctionalTesting, PLONE_FIXTURE,
 
FIXTURE = PackageLayer()
INTEGRATION_TESTING = IntegrationTesting(bases=(FIXTURE,), name='%s:Integration' % PACKAGE_NAME)
FUNCTIONAL_TESTING = FunctionalTesting(bases=(FIXTURE,), name='%s:Functional' % PACKAGE_NAME)
 

src/p/r/prdg.plone.util-0.0.9/prdg/plone/util/testing.py   prdg.plone.util(Download)
#coding=utf8
from .config import PACKAGE_NAME
from plone.app.testing import IntegrationTesting
from plone.app.testing import FunctionalTesting
from plone.app.testing import PLONE_FIXTURE
INTEGRATION_TESTING = IntegrationTesting(
    bases=(FIXTURE,),
    name='{}:Integration'.format(PACKAGE_NAME)
)
FUNCTIONAL_TESTING = FunctionalTesting(
    bases=(FIXTURE,),
    name='{}:Integration'.format(PACKAGE_NAME)

src/c/o/collective.installedpackages-0.1b2/collective/installedpackages/testing.py   collective.installedpackages(Download)
#coding=utf8
from .config import PACKAGE_NAME
from plone.app.testing import IntegrationTesting, PLONE_FIXTURE, PloneSandboxLayer
 
class PackageLayer(PloneSandboxLayer):
 
FIXTURE = PackageLayer()
INTEGRATION_TESTING = IntegrationTesting(bases=(FIXTURE,), name='%s:Integration' % PACKAGE_NAME)