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

All Samples(29)  |  Call(4)  |  Derive(4)  |  Import(21)
An object that has configurable permissions

src/p/r/Products.listen-0.6.4/Products/listen/browser/mailinglist_views.py   Products.listen(Download)
 
from Acquisition import aq_inner
from AccessControl.interfaces import IRoleManager
 
from Products.Five import BrowserView
    def _assign_local_roles_to_managers(self, ml):
        assign_local_role('Owner', ml.managers, IRoleManager(ml))
 
    def createAndAdd(self, data):
        # use aq_inner, or else the obj will be wrapped in this view,
    def _assign_local_roles_to_managers(self):
        ml = self.context
        assign_local_role('Owner', ml.managers, IRoleManager(ml))
 
    @form.action(_('label_save', u'Save'), condition=form.haveInputWidgets)

src/o/p/opencore-listen-0.8.0/Products/listen/browser/mailinglist_views.py   opencore-listen(Download)
 
from Acquisition import aq_inner
from AccessControl.interfaces import IRoleManager
 
from Products.Five import BrowserView
    def _assign_local_roles_to_managers(self, ml):
        assign_local_role('Owner', ml.managers, IRoleManager(ml))
 
    def createAndAdd(self, data):
        # use aq_inner, or else the obj will be wrapped in this view,
    def _assign_local_roles_to_managers(self):
        ml = self.context
        assign_local_role('Owner', ml.managers, IRoleManager(ml))
 
    @form.action(_('label_save', u'Save'), condition=form.haveInputWidgets)

src/z/o/Zope2-2.13.22/src/OFS/interfaces.py   Zope2(Download)
 
from AccessControl.interfaces import IOwned
from AccessControl.interfaces import IRoleManager
from Acquisition.interfaces import IAcquirer
from App.interfaces import INavigation
class ISimpleItem(IItem, IPersistent, IAcquirer, IRoleManager):
 
    """Not-so-simple item.
    """
 
class IFolder(IObjectManager, IPropertyManager, IRoleManager,
              IDAVCollection, IItem, IFindSupport):
 
    """Folders are basic container objects that provide a standard
    interface for object management. Folder objects also implement a

src/z/o/Zope-HEAD/src/OFS/interfaces.py   Zope(Download)
 
from AccessControl.interfaces import IOwned
from AccessControl.interfaces import IRoleManager
from Acquisition.interfaces import IAcquirer
from App.interfaces import INavigation
class ISimpleItem(IItem, IPersistent, IAcquirer, IRoleManager):
 
    """Not-so-simple item.
    """
 
class IFolder(IObjectManager, IPropertyManager, IRoleManager,
              IDAVCollection, IItem, IFindSupport):
 
    """Folders are basic container objects that provide a standard
    interface for object management. Folder objects also implement a

src/a/g/ageliaco.rd2-0.8.4/ageliaco/rd2/interface.py   ageliaco.rd2(Download)
from zope.security import checkPermission
 
from AccessControl.interfaces import IRoleManager
 
import yafowil.plone
from yafowil.plone.form import Form
 
from AccessControl.interfaces import IRoleManager
 
schools = {u"ECGGR":[u"EC Bougeries",u"CEC"],

src/a/c/AccessControl-3.0.8/src/AccessControl/rolemanager.py   AccessControl(Download)
from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from AccessControl.interfaces import IRoleManager
from AccessControl.Permission import getPermissions
from AccessControl.Permission import Permission

src/a/g/ageliaco.tracker-0.1.8/ageliaco/tracker/content/tracker.py   ageliaco.tracker(Download)
from zope.schema.fieldproperty import FieldProperty
from zope.schema.interfaces import IVocabularyFactory
from AccessControl.interfaces import IRoleManager
 
# for debug purpose => log(...)

src/a/g/ageliaco.tracker-0.1.8/ageliaco/tracker/content/issue.py   ageliaco.tracker(Download)
from zope.lifecycleevent.interfaces import IObjectModifiedEvent
from zope.schema.fieldproperty import FieldProperty
from AccessControl.interfaces import IRoleManager
 
from plone.app.discussion.browser.comments import CommentsViewlet 

src/z/3/z3c.formwidget.query-0.10/src/z3c/formwidget/query/widget.py   z3c.formwidget.query(Download)
HAS_AC = True
try:
    from AccessControl.interfaces import IRoleManager
except ImportError:
    HAS_AC = False

src/c/o/collective.jsonmigrator-0.2/collective/jsonmigrator/permissions.py   collective.jsonmigrator(Download)
from collective.transmogrifier.utils import defaultKeys
 
from AccessControl.interfaces import IRoleManager
from collective.jsonmigrator import logger
 

  1 | 2  Next