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.CMFDefault-2.3.0-beta2/Products/CMFDefault/Link.py   Products.CMFDefault(Download)
        self.format=self.URL_FORMAT
 
    security.declareProtected(ModifyPortalContent, 'manage_edit')
    manage_edit = DTMLFile( 'zmi_editLink', _dtmldir )
 
    security.declareProtected(ModifyPortalContent, 'manage_editLink')
        self.remote_url = url
 
    security.declareProtected(ModifyPortalContent, 'edit')
    def edit(self, remote_url ):
        """ Update and reindex. """
        self._edit( remote_url )
        self.reindexObject()
 
    security.declareProtected(View, 'SearchableText')
        return "%s %s" % (self.title, self.description)
 
    security.declareProtected(View, 'getRemoteUrl')
    def getRemoteUrl(self):
        """

src/p/r/Products.CMFTopic-2.3.0-beta/Products/CMFTopic/Topic.py   Products.CMFTopic(Download)
    _criteriaTypes = []
 
    security.declareProtected(ChangeTopics, 'listCriteria')
    def listCriteria(self):
        """ Return a list of our criteria objects.
        """
        return self.objectValues( self._criteria_metatype_ids() )
 
    security.declareProtected(ChangeTopics, 'listCriteriaTypes')
        return out
 
    security.declareProtected(ChangeTopics, 'listAvailableFields')
    def listAvailableFields(self):
        """ Return a list of available fields for new criteria.
        return availfields
 
    security.declareProtected(ChangeTopics, 'listSubtopics')
    def listSubtopics(self):
        """ Return a list of our subtopics.
        """
        return self.objectValues( self.meta_type )
 
    security.declareProtected(ChangeTopics, 'edit')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/WorkflowTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected( ManagePortal, 'manage_overview' )
    manage_overview = DTMLFile( 'explainWorkflowTool', _dtmldir )
 
    _manage_selectWorkflows = DTMLFile('selectWorkflows', _dtmldir)
 
    security.declareProtected( ManagePortal, 'manage_selectWorkflows')
            manage_tabs_message=manage_tabs_message)
 
    security.declareProtected( ManagePortal, 'manage_changeWorkflows')
    @postonly
    def manage_changeWorkflows(self, default_chain, props=None, REQUEST=None):
    #   'IConfigurableWorkflowTool' interface methods
    #
    security.declareProtected(ManagePortal, 'setDefaultChain')
    @postonly
    def setDefaultChain(self, default_chain, REQUEST=None):
        self._default_chain = tuple(ids)
 
    security.declareProtected(ManagePortal, 'setChainForPortalTypes')
    @postonly
    def setChainForPortalTypes(self, pt_names, chain, verify=True,

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSPropertiesObject.py   Products.CMFCore(Download)
    security = ClassSecurityInfo()
 
    security.declareProtected(ViewManagementScreens, 'manage_main')
    manage_main = DTMLFile('custprops', _dtmldir)
 
    security.declarePrivate('manage_changePropertyTypes')
 
    security.declareProtected(ViewManagementScreens, 'manage_doCustomize')
    def manage_doCustomize(self, folder_path, RESPONSE=None, \
                           root=None, obj=None):

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSZSQLMethod.py   Products.CMFCore(Download)
    manage=None
 
    security.declareProtected(ViewManagementScreens, 'manage_customise')
    manage_customise = DTMLFile('custzsql', _dtmldir)
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/SkinsContainer.py   Products.CMFCore(Download)
    security = ClassSecurityInfo()
 
    security.declareProtected(AccessContentsInformation, 'getSkinPath')
    def getSkinPath(self, name):
        """ Convert a skin name to a skin path.
        """
        raise NotImplementedError
 
    security.declareProtected(AccessContentsInformation, 'getDefaultSkin')
        raise NotImplementedError
 
    security.declareProtected(AccessContentsInformation, 'getRequestVarname')
    def getRequestVarname(self):
        """ Get the variable name to look for in the REQUEST.

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/SkinnedFolder.py   Products.CMFDefault(Download)
        self.addCreator()
 
    security.declareProtected(ModifyPortalContent, 'addCreator')
    addCreator = DefaultDublinCoreImpl.addCreator.im_func
 
    security.declareProtected(View, 'listCreators')
    listCreators = DefaultDublinCoreImpl.listCreators.im_func
 
    security.declareProtected(View, 'Creator')
    #   'IContentish' interface method
    #
    security.declareProtected(View, 'SearchableText')
    def SearchableText(self):
        """

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSDTMLMethod.py   Products.CMFCore(Download)
    security.declareObjectProtected(View)
 
    security.declareProtected(ViewManagementScreens, 'manage_main')
    manage_main = DTMLFile('custdtml', _dtmldir)
 
        return getSecurityManager().validate(inst, parent, name, value)
 
    security.declareProtected(FTPAccess, 'manage_FTPget')
    manage_FTPget = DTMLMethod.manage_FTPget.im_func
 
    security.declareProtected(ViewManagementScreens, 'PrincipiaSearchSource')
    PrincipiaSearchSource = DTMLMethod.PrincipiaSearchSource.im_func
 
    security.declareProtected(ViewManagementScreens, 'document_src')
    document_src = DTMLMethod.document_src.im_func
 
    security.declareProtected(ViewManagementScreens, 'manage_haveProxy')
    manage_haveProxy = DTMLMethod.manage_haveProxy.im_func
 

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/Image.py   Products.CMFDefault(Download)
                               , format, language, rights )
 
    security.declareProtected(View, 'SearchableText')
    def SearchableText(self):
        """
            self.manage_upload(file)
 
    security.declareProtected(ModifyPortalContent, 'edit')
    def edit(self, precondition='', file=''):
        """ Update and reindex. """
        self._edit( precondition, file )
        self.reindexObject()
 
    security.declareProtected(View, 'index_html')
        return _OldCacheHeaders(self)
 
    security.declareProtected(View, 'Format')
    def Format(self):
        """ Dublin Core element - resource format """
        return self.content_type
 
    security.declareProtected(ModifyPortalContent, 'setFormat')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/PortalContent.py   Products.CMFCore(Download)
    # The security for FTP methods aren't set up by default in our
    # superclasses...  :(
    security.declareProtected(FTPAccess, 'manage_FTPstat')
    security.declareProtected(FTPAccess, 'manage_FTPlist')
 
    #   Contentish interface methods
    #
    security.declareProtected(View, 'SearchableText')
    def SearchableText(self):
        """ Returns a concatination of all searchable text.

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