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

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

src/b/o/borg.localrole-3.1/borg/localrole/setuphandlers.py   borg.localrole(Download)
from borg.localrole.utils import setup_localrole_plugin
 
def importVarious(context):
 
    if context.readDataFile('borg.localrole_various.txt') is None:
        return
 
    portal = context.getSite()
    setup_localrole_plugin(portal)

src/b/o/borg.project-1.1rc9/src/borg/project/setuphandlers.py   borg.project(Download)
from StringIO import StringIO
from Products.CMFCore.utils import getToolByName
from Products.PlonePAS.Extensions.Install import activatePluginInterfaces
 
from borg.localrole.utils import setup_localrole_plugin
    site = context.getSite()
 
    print >> out, setup_localrole_plugin(site)
    print >> out, add_placeful_workflow_policy(site)