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

All Samples(1289)  |  Call(1289)  |  Derive(0)  |  Import(0)
Declare names to be associated with a permission.

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/CookieCrumbler.py   Products.CMFCore(Download)
 
    security = ClassSecurityInfo()
    security.declareProtected(ModifyCookieCrumblers, 'manage_editProperties')
    security.declareProtected(ModifyCookieCrumblers, 'manage_changeProperties')
    security.declareProtected(ViewManagementScreens, 'manage_propertiesForm')

src/z/o/Zope2-2.13.22/src/OFS/owner.py   Zope2(Download)
                   )
 
    security.declareProtected(view_management_screens, 'manage_owner')
    manage_owner = DTMLFile('dtml/owner', globals())
 
    security.declareProtected(take_ownership, 'manage_takeOwnership')
        RESPONSE.redirect(REQUEST['HTTP_REFERER'])
 
    security.declareProtected(take_ownership, 'manage_changeOwnershipType')
    @requestmethod('POST')
    def manage_changeOwnershipType(self, explicit=1,

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/MembershipTool.py   Products.CMFDefault(Download)
    #   ZMI methods
    #
    security.declareProtected( ManagePortal, 'manage_overview' )
    manage_overview = DTMLFile( 'explainMembershipTool', _dtmldir )
 
    security.declareProtected(ManagePortal, 'manage_mapRoles')
    manage_mapRoles = DTMLFile('membershipRolemapping', _dtmldir )
 
    security.declareProtected(ManagePortal, 'manage_setMembersFolderById')
    #   'portal_membership' interface methods
    #
    security.declareProtected(ListPortalMembers, 'getRoster')
    def getRoster(self):
        """ Return a list of mappings for 'listed' members.
        return roster
 
    security.declareProtected(ManagePortal, 'setMembersFolderById')
    def setMembersFolderById(self, id=''):
        """ Set the members folder object by its id.

src/p/r/Products.DCWorkflow-2.3.0-beta/Products/DCWorkflow/WorkflowUIMixin.py   Products.DCWorkflow(Download)
    security = ClassSecurityInfo()
 
    security.declareProtected(ManagePortal, 'manage_properties')
    manage_properties = DTMLFile('workflow_properties', _dtmldir)
    manage_groups = PageTemplateFile('workflow_groups.pt', _dtmldir)
 
    security.declareProtected(ManagePortal, 'setProperties')
    _permissions_form = DTMLFile('workflow_permissions', _dtmldir)
 
    security.declareProtected(ManagePortal, 'manage_permissions')
    def manage_permissions(self, REQUEST, manage_tabs_message=None):
        """Displays the form for choosing which permissions to manage.
                                      )
 
    security.declareProtected(ManagePortal, 'addManagedPermission')
    @postonly
    def addManagedPermission(self, p, REQUEST=None):
                REQUEST, manage_tabs_message='Permission added.')
 
    security.declareProtected(ManagePortal, 'delManagedPermissions')
    @postonly
    def delManagedPermissions(self, ps, REQUEST=None):

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSSTXMethod.py   Products.CMFCore(Download)
    security.declareObjectProtected(View)
 
    security.declareProtected(ViewManagementScreens, 'manage_main')
    manage_main = DTMLFile('custstx', _dtmldir)
 
        return template(*posargs, **kwargs)
 
    security.declareProtected(FTPAccess, 'manage_FTPget')
    def manage_FTPget(self):
        """ Fetch our source for delivery via FTP.
        """
        return self.raw
 
    security.declareProtected(ViewManagementScreens, 'PrincipiaSearchSource')
        return self.raw
 
    security.declareProtected(ViewManagementScreens, 'document_src')
    def document_src( self ):
        """ Fetch our source for rendering in the ZMI.

src/z/o/Zope2-2.13.22/src/Products/PageTemplates/PageTemplateFile.py   Zope2(Download)
 
    security = ClassSecurityInfo()
    security.declareProtected('View management screens',
      'read', 'document_src')
 

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/SyndicationTool.py   Products.CMFDefault(Download)
                     )
 
    security.declareProtected(ManagePortal, 'overview')
    overview = HTMLFile('synOverview', _dtmldir)
 
        return adapter
 
    security.declareProtected(ManageProperties, 'editSyInformationProperties')
    def editSyInformationProperties( self
                                   , obj
        info.max_items = max_items or self.max_items
 
    security.declareProtected(ManageProperties, 'enableSyndication')
    def enableSyndication(self, obj):
        """
        info.enable()
 
    security.declareProtected(ManageProperties, 'disableSyndication')
    def disableSyndication(self, obj):
        """

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSImage.py   Products.CMFCore(Download)
    security.declareObjectProtected(View)
 
    security.declareProtected(ViewManagementScreens, 'manage_main')
    manage_main = DTMLFile('custimage', _dtmldir)
 
 
    _image_tag = Image.tag.im_func
    security.declareProtected(View, 'tag')
    def tag(self, *args, **kw):
        # Hook into an opportunity to reload metadata.
        self._updateFromFS()
        return self._image_tag(*args, **kw)
 
    security.declareProtected(View, 'index_html')
        return self.getModTime()
 
    security.declareProtected(View, 'getContentType')
    def getContentType(self):
        """Get the content type of a file or image.
        return self.content_type
 
    security.declareProtected(View, 'get_size')
    def get_size(self):
        """

src/z/o/Zope-HEAD/src/OFS/owner.py   Zope(Download)
                   )
 
    security.declareProtected(view_management_screens, 'manage_owner')
    manage_owner = DTMLFile('dtml/owner', globals())
 
    security.declareProtected(take_ownership, 'manage_takeOwnership')
        RESPONSE.redirect(REQUEST['HTTP_REFERER'])
 
    security.declareProtected(take_ownership, 'manage_changeOwnershipType')
    @requestmethod('POST')
    def manage_changeOwnershipType(self, explicit=1,

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/ActionProviderBase.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected( ManagePortal, 'manage_editActionsForm' )
    def manage_editActionsForm( self, REQUEST, manage_tabs_message=None ):
 
                                 )
 
    security.declareProtected( ManagePortal, 'addAction' )
    def addAction( self
                 , id
                REQUEST, manage_tabs_message='Added.')
 
    security.declareProtected( ManagePortal, 'changeActions' )
    def changeActions( self, properties=None, REQUEST=None ):
 
                                               'Actions changed.')
 
    security.declareProtected( ManagePortal, 'deleteActions' )
    def deleteActions( self, selections=(), REQUEST=None ):
 
                'Deleted %d action(s).' % len(sels)))
 
    security.declareProtected( ManagePortal, 'moveUpActions' )
    def moveUpActions( self, selections=(), REQUEST=None ):
 

Previous  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13  Next