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/i/n/intranett-HEAD/src/intranett.policy/intranett/policy/setuphandlers.py   intranett(Download)
def setup_reject_anonymous(site):
    from iw.rejectanonymous import IPrivateSite
    # Used both as a setup and upgrade handler
    portal = getToolByName(site, 'portal_url').getPortalObject()
    alsoProvides(portal, IPrivateSite)

src/i/w/iw.rejectanonymous-1.2.3/iw/rejectanonymous/plonecontrolpanel.py   iw.rejectanonymous(Download)
from zope.formlib.form import FormFields
from plone.app.controlpanel import security
from iw.rejectanonymous import IPrivateSite
 
class IPrivateSiteSchema(security.ISecuritySchema):