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.GenericSetup-1.7.4/Products/GenericSetup/tool.py   Products.GenericSetup(Download)
    #   ISetupTool API
    #
    security.declareProtected(ManagePortal, 'getEncoding')
    def getEncoding(self):
        """ See ISetupTool.
        """
        return 'utf-8'
 
    security.declareProtected(ManagePortal, 'getBaselineContextID')
        return self._baseline_context_id
 
    security.declareProtected(ManagePortal, 'setBaselineContext')
    def setBaselineContext(self, context_id, encoding=None):
        """ See ISetupTool.
        """
        self._baseline_context_id = context_id
        self.applyContextById(context_id, encoding)
 
    security.declareProtected(ManagePortal, 'getExcludeGlobalSteps')
        return self._exclude_global_steps
 
    security.declareProtected(ManagePortal, 'setExcludeGlobalSteps')
    def setExcludeGlobalSteps(self, value):
        """ See ISetupTool.

src/p/r/Products.ZCatalog-3.0.2/src/Products/ZCatalog/ZCatalog.py   Products.ZCatalog(Download)
    security.setPermissionDefault(manage_zcatalog_indexes, ('Manager', ))
    security.setPermissionDefault(search_zcatalog, ('Anonymous', 'Manager'))
    security.declareProtected(search_zcatalog, 'all_meta_types')
 
    meta_type = "ZCatalog"
        )
 
    security.declareProtected(manage_zcatalog_entries, 'manage_main')
 
    security.declareProtected(manage_zcatalog_entries, 'manage_catalogView')
    manage_catalogView = DTMLFile('dtml/catalogView', globals())
 
    security.declareProtected(manage_zcatalog_entries, 'manage_catalogIndexes')
    manage_catalogIndexes = DTMLFile('dtml/catalogIndexes', globals())
 
    security.declareProtected(manage_zcatalog_entries, 'manage_catalogSchema')
    manage_catalogSchema = DTMLFile('dtml/catalogSchema', globals())
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/SkinsTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainSkinsTool', _dtmldir )
 
    security.declareProtected(ManagePortal, 'manage_propertiesForm')
    # the following two methods override those in FindSupport, to
    # support marking of objects used in specific skins
    security.declareProtected(ManagePortal, 'manage_findResult')
    manage_findResult = DTMLFile('findResult', _dtmldir,
                                 management_view='Find')
 
    security.declareProtected(ManagePortal, 'manage_findForm')
                               management_view='Find')
 
    security.declareProtected(ManagePortal, 'manage_compareResults')
    manage_compareResults = DTMLFile('compareResults', _dtmldir,
                                 management_view='Compare')

src/z/o/Zope-HEAD/src/webdav/Lockable.py   Zope(Download)
    security.declarePublic('wl_isLocked', 'wl_getLock', 'wl_isLockedByUser',
                           'wl_lockItems', 'wl_lockValues', 'wl_lockTokens',)
    security.declareProtected('WebDAV Lock items', 'wl_setLock')
    security.declareProtected('WebDAV Unlock items', 'wl_delLock')
    security.declareProtected('Manage WebDAV Locks', 'wl_clearLocks')

src/z/o/Zope2-2.13.22/src/webdav/LockItem.py   Zope2(Download)
                           'getModifiedTime', 'isValid', 'getLockScope',
                           'getLockType')
    security.declareProtected('Change Lock Information',
                              'setTimeout', 'refresh')
    security.declareProtected('Access contents information',

src/p/r/Products.GenericSetup-1.7.4/Products/GenericSetup/registry.py   Products.GenericSetup(Download)
        self.clear()
 
    security.declareProtected(ManagePortal, 'listSteps')
    def listSteps(self):
        """ Return a list of registered step IDs.
        """
        return self._registered.keys()
 
    security.declareProtected(ManagePortal, 'getStepMetadata')
        return result
 
    security.declareProtected(ManagePortal, 'listStepMetadata')
    def listStepMetadata(self):
        """ Return a sequence of mappings describing registered steps.
        return [ self.getStepMetadata(x) for x in step_ids ]
 
    security.declareProtected(ManagePortal, 'generateXML')
    def generateXML(self, encoding='utf-8'):
        """ Return a round-trippable XML representation of the registry.
    RegistryParser = _ImportStepRegistryParser
 
    security.declareProtected(ManagePortal, 'sortSteps')
    def sortSteps(self):
        """ Return a sequence of registered step IDs

src/z/o/Zope-HEAD/src/webdav/LockItem.py   Zope(Download)
                           'getModifiedTime', 'isValid', 'getLockScope',
                           'getLockType')
    security.declareProtected('Change Lock Information',
                              'setTimeout', 'refresh')
    security.declareProtected('Access contents information',

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSPythonScript.py   Products.CMFCore(Download)
        self.original_source = text
 
    security.declareProtected(ViewManagementScreens, 'getDiff')
    def getDiff(self):
        """ Return a diff of the current source with the original source.
                           )
 
    security.declareProtected(ViewManagementScreens, 'manage_showDiff')
    manage_showDiff = PageTemplateFile('www/cpsDiff.pt', globals())
 
    security.declareObjectProtected(View)
 
    security.declareProtected(ViewManagementScreens, 'manage_main')
    manage_main = DTMLFile('custpy', _dtmldir)
 
    security.declareProtected(View, 'index_html',)
    _exec = PythonScript._exec.im_func
 
    security.declareProtected(ViewManagementScreens, 'getModTime')
    # getModTime defined in FSObject
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/MembershipTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainMembershipTool', _dtmldir )
 
    #
    #   'portal_membership' interface methods
    #
    security.declareProtected(ManagePortal, 'manage_mapRoles')
    manage_mapRoles = DTMLFile('membershipRolemapping', _dtmldir )
 
    security.declareProtected(SetOwnPassword, 'setPassword')
    @postonly
    def setPassword(self, password, domains=None, REQUEST=None):
        return u
 
    security.declareProtected(ManagePortal, 'getPortalRoles')
    def getPortalRoles(self):
        """
        return roles
 
    security.declareProtected(ManagePortal, 'setRoleMapping')
    @postonly
    def setRoleMapping(self, portal_role, userfolder_role, REQUEST=None):

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/MetadataTool.py   Products.CMFDefault(Download)
    #   Mutator.
    #
    security.declareProtected(ManagePortal , 'edit')
    def edit( self
            , is_required
    #   Query interface
    #
    security.declareProtected(View , 'isMultiValued')
    def isMultiValued( self ):
        """ Can this element hold multiple values?
        """
        return self.is_multi_valued
 
    security.declareProtected(View , 'isRequired')
        return self.is_required
 
    security.declareProtected(View , 'supplyDefault')
    def supplyDefault( self ):
        """ Should the tool supply a default?
        """
        return self.supply_default
 
    security.declareProtected(View , 'defaultValue')

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