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/CachingPolicyManager.py   Products.CMFCore(Download)
                     )
 
    security.declareProtected( ManagePortal, 'manage_cachingPolicies' )
    manage_cachingPolicies = DTMLFile( 'cachingPolicies', _dtmldir )
 
        return tuple([ (id, self._policies[id]) for id in self._policy_ids ])
 
    security.declareProtected( ManagePortal, 'addPolicy' )
    def addPolicy( self
                 , policy_id
                                          )
 
    security.declareProtected( ManagePortal, 'updatePolicy' )
    def updatePolicy( self
                    , policy_id
                                          )
 
    security.declareProtected( ManagePortal, 'movePolicyUp' )
    def movePolicyUp( self, policy_id, REQUEST=None ):
        """
                              )
 
    security.declareProtected( ManagePortal, 'movePolicyDown' )
    def movePolicyDown( self, policy_id, REQUEST=None ):
        """

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSReSTMethod.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/SiteErrorLog/SiteErrorLog.py   Zope2(Download)
        ) + SimpleItem.manage_options
 
    security.declareProtected(use_error_logging, 'manage_main')
    manage_main = PageTemplateFile('main.pt', _www)
 
    security.declareProtected(use_error_logging, 'showEntry')
        return log
 
    security.declareProtected(use_error_logging, 'forgetEntry')
    def forgetEntry(self, id, REQUEST=None):
        """Removes an entry from the error log."""
            LOG.error('%s %s\n%s' % (entry_id, url, tb_text.rstrip()))
 
    security.declareProtected(use_error_logging, 'getProperties')
    def getProperties(self):
        return {
            }
 
    security.declareProtected(log_to_event_log, 'checkEventLogPermission')
    def checkEventLogPermission(self):
        if not getSecurityManager().checkPermission(log_to_event_log, self):

src/z/o/Zope-HEAD/src/webdav/NullResource.py   Zope(Download)
        raise NotFound, 'The requested resource was not found.'
 
    security.declareProtected(View, 'HEAD')
    def HEAD(self, REQUEST, RESPONSE):
        """Retrieve resource information without a response message body."""
        return RESPONSE
 
    security.declareProtected(add_folders, 'MKCOL')
    def MKCOL(self, REQUEST, RESPONSE):
        """Create a new collection resource."""
        return RESPONSE
 
    security.declareProtected(webdav_lock_items, 'LOCK')
    def LOCK(self, REQUEST, RESPONSE):
        """ LOCK on a Null Resource makes a LockNullResource instance """
    manage_options = ({'label': 'Info', 'action': 'manage_main'},)
 
    security.declareProtected(View, 'manage')
    security.declareProtected(View, 'manage_main')
    manage = manage_main = DTMLFile('dtml/locknullmain', globals())

src/z/o/Zope2-2.13.22/src/OFS/OrderSupport.py   Zope2(Download)
    #
 
    security.declareProtected(manage_properties, 'manage_move_objects_up')
    def manage_move_objects_up(self, REQUEST, ids=None, delta=1):
        """ Move specified sub-objects up by delta in container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_move_objects_down')
    def manage_move_objects_down(self, REQUEST, ids=None, delta=1):
        """ Move specified sub-objects down by delta in container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_move_objects_to_top')
    def manage_move_objects_to_top(self, REQUEST, ids=None):
        """ Move specified sub-objects to top of container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_move_objects_to_bottom')
    def manage_move_objects_to_bottom(self, REQUEST, ids=None):
        """ Move specified sub-objects to bottom of container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_set_default_sorting')
    def manage_set_default_sorting(self, REQUEST, key, reverse):
        """ Set default sorting key and direction.

src/p/r/Products.ZCatalog-3.0.2/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py   Products.ZCatalog(Download)
        self.clear()
 
    security.declareProtected(view, 'getSinceField')
    def getSinceField(self):
        """Get the name of the attribute indexed as start date.
        """
        return self._since_field
 
    security.declareProtected(view, 'getUntilField')
        return self._until_field
 
    security.declareProtected(view, 'getFloorValue')
    def getFloorValue(self):
        """"""
        return self.floor_value
 
    security.declareProtected(view, 'getCeilingValue')
    manage_indexProperties = DTMLFile('manageDateRangeIndex', _dtmldir)
 
    security.declareProtected(manage_zcatalog_indexes, 'manage_edit')
    def manage_edit(self, since_field, until_field, floor_value,
                    ceiling_value, REQUEST):

src/z/o/Zope-HEAD/src/Products/SiteErrorLog/SiteErrorLog.py   Zope(Download)
        ) + SimpleItem.manage_options
 
    security.declareProtected(use_error_logging, 'manage_main')
    manage_main = PageTemplateFile('main.pt', _www)
 
    security.declareProtected(use_error_logging, 'showEntry')
        return log
 
    security.declareProtected(use_error_logging, 'forgetEntry')
    def forgetEntry(self, id, REQUEST=None):
        """Removes an entry from the error log."""
            LOG.error('%s %s\n%s' % (entry_id, url, tb_text.rstrip()))
 
    security.declareProtected(use_error_logging, 'getProperties')
    def getProperties(self):
        return {
            }
 
    security.declareProtected(log_to_event_log, 'checkEventLogPermission')
    def checkEventLogPermission(self):
        if not getSecurityManager().checkPermission(log_to_event_log, self):

src/z/o/Zope-HEAD/src/OFS/OrderSupport.py   Zope(Download)
    #
 
    security.declareProtected(manage_properties, 'manage_move_objects_up')
    def manage_move_objects_up(self, REQUEST, ids=None, delta=1):
        """ Move specified sub-objects up by delta in container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_move_objects_down')
    def manage_move_objects_down(self, REQUEST, ids=None, delta=1):
        """ Move specified sub-objects down by delta in container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_move_objects_to_top')
    def manage_move_objects_to_top(self, REQUEST, ids=None):
        """ Move specified sub-objects to top of container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_move_objects_to_bottom')
    def manage_move_objects_to_bottom(self, REQUEST, ids=None):
        """ Move specified sub-objects to bottom of container.
                                manage_tabs_message=message, update_menu=1)
 
    security.declareProtected(manage_properties, 'manage_set_default_sorting')
    def manage_set_default_sorting(self, REQUEST, key, reverse):
        """ Set default sorting key and direction.

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/DirectoryView.py   Products.CMFCore(Download)
        delattr(d['_real'], name)
 
    security.declareProtected(ManagePortal, 'manage_propertiesForm')
    manage_propertiesForm = DTMLFile( 'dirview_properties', _dtmldir )
 
    security.declareProtected(ManagePortal, 'manage_properties')
                                        % self.absolute_url() )
 
    security.declareProtected(ACI, 'getCustomizableObject')
    def getCustomizableObject(self):
        ob = aq_parent(aq_inner(self))
        return ob
 
    security.declareProtected(ACI, 'listCustFolderPaths')
    def listCustFolderPaths(self, adding_meta_type=None):
        """ List possible customization folders as key, value pairs.
        return rval
 
    security.declareProtected(ACI, 'getDirPath')
    def getDirPath(self):
        return self.__dict__['_real']._dirpath

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/MemberDataTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainMemberDataTool', _dtmldir )
 
    security.declareProtected(ViewManagementScreens, 'manage_showContents')
        return self.getUser().getId()
 
    security.declareProtected(SetOwnProperties, 'setProperties')
    def setProperties(self, properties=None, **kw):
        '''Allows the authenticated member to set his/her own properties.

Previous  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10  Next