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/CMFCatalogAware.py   Products.CMFCore(Download)
    #   'ICatalogAware' interface methods
    #
    security.declareProtected(ModifyPortalContent, 'indexObject')
    def indexObject(self):
        """ Index the object in the portal catalog.
            catalog.indexObject(self)
 
    security.declareProtected(ModifyPortalContent, 'unindexObject')
    def unindexObject(self):
        """ Unindex the object from the portal catalog.
            catalog.unindexObject(self)
 
    security.declareProtected(ModifyPortalContent, 'reindexObject')
    def reindexObject(self, idxs=[]):
        """ Reindex the object in the portal catalog.
    _cmf_security_indexes = ('allowedRolesAndUsers',)
 
    security.declareProtected(ModifyPortalContent, 'reindexObjectSecurity')
    def reindexObjectSecurity(self, skip_self=False):
        """ Reindex security-related indexes on the object.
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_workflowsTab')
    def manage_workflowsTab(self, REQUEST, manage_tabs_message=None):
        """ Tab displaying the current workflows for the content object.

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/Document.py   Products.CMFDefault(Download)
        self._edit(text)
 
    security.declareProtected(ModifyPortalContent, 'manage_edit')
    manage_edit = DTMLFile('zmi_editDocument', _dtmldir)
 
    security.declareProtected(ModifyPortalContent, 'manage_editDocument')
    #
 
    security.declareProtected(ModifyPortalContent, 'edit')
    def edit(self, text_format, text, file='', safety_belt=''):
        """ Update the document.
        self.reindexObject()
 
    security.declareProtected(ModifyPortalContent, 'setMetadata')
    def setMetadata(self, headers):
        headers['Format'] = self.Format()
    #
 
    security.declareProtected(View, 'SearchableText')
    def SearchableText(self):
        """ Used by the catalog for basic full text indexing """

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/URLTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile('explainURLTool', _dtmldir)
 

src/p/r/Products.CMFActionIcons-2.1.3/Products/CMFActionIcons/ActionIconsTool.py   Products.CMFActionIcons(Download)
        self._priority = priority
 
    security.declareProtected( View, 'getTitle' )
    def getTitle( self ):
 
        """ Simple accessor """
        return self._title
 
    security.declareProtected( View, 'getPriority' )
        return self._priority
 
    security.declareProtected( View, 'getCategory' )
    def getCategory( self ):
 
        """ Simple accessor """
        return self._category
 
    security.declareProtected( View, 'getActionId' )
        return self._action_id
 
    security.declareProtected( View, 'getExpression' )
    def getExpression( self ):
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSObject.py   Products.CMFCore(Download)
        self._readFile(0)
 
    security.declareProtected(ViewManagementScreens, 'manage_doCustomize')
    def manage_doCustomize(self, folder_path, RESPONSE=None, \
                           root=None, obj=None):
                self._parsed = 1
 
    security.declareProtected(View, 'get_size')
    def get_size(self):
        """Get the size of the underlying file."""
        return os.path.getsize(self._filepath)
 
    security.declareProtected(View, 'getModTime')
        return DateTime(self._file_mod_time)
 
    security.declareProtected(ViewManagementScreens, 'getObjectFSPath')
    def getObjectFSPath(self):
        """Return the path of the file we represent"""
 
    showError = HTML( BAD_FILE_VIEW )
    security.declareProtected(ManagePortal, 'manage_showError')
    def manage_showError( self, REQUEST ):
        """

src/p/r/Products.StandardCacheManagers-2.13.0/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py   Products.StandardCacheManagers(Download)
            return cache
 
    security.declareProtected(view_management_screens, 'getSettings')
    def getSettings(self):
        ' '
        return self._settings.copy()  # Don't let UI modify it.
 
    security.declareProtected(view_management_screens, 'manage_main')
    manage_main = DTMLFile('dtml/propsAccel', globals())
 
    security.declareProtected('Change cache managers', 'manage_editProps')
    def manage_editProps(self, title, settings=None, REQUEST=None):
        ' '
                self, REQUEST, manage_tabs_message='Properties changed.')
 
    security.declareProtected(view_management_screens, 'manage_stats')
    manage_stats = DTMLFile('dtml/statsAccel', globals())
 
        return sort_by, sort_reverse
 
    security.declareProtected(view_management_screens, 'getCacheReport')
    def getCacheReport(self):
        """

src/p/r/Products.References-1.0/Products/References/__init__.py   Products.References(Download)
    security.declareObjectProtected(access_contents_information)
    security.setDefaultAccess('allow')
    security.declareProtected('References: change',
                              'edit', 'editForm',
                              )

src/p/r/Products.CMFCalendar-2.3.0-beta/Products/CMFCalendar/Event.py   Products.CMFCalendar(Download)
        return _dateStrings(self.start())
 
    security.declareProtected(ChangeEvents, 'edit')
    def edit( self
            , title=None
        return result
 
    security.declareProtected(ChangeEvents, 'setStartDate')
    def setStartDate(self, start):
        """ Setting the event start date when the event is scheduled to begin.
        """
        self.start_date = self._datify(start)
 
    security.declareProtected(ChangeEvents, 'setEndDate')
        return headers, body, format
 
    security.declareProtected(ModifyPortalContent, 'setMetadata')
    def setMetadata(self, headers):
        """ Set an Event's metadata
    ## FTP handlers
 
    security.declareProtected(ModifyPortalContent, 'PUT')
    def PUT(self, REQUEST, RESPONSE):
        """ Handle HTTP (and presumably FTP?) PUT requests """

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/File.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, 'download')
    def download(self, REQUEST, RESPONSE):
        """Download this item.
        return self.index_html(self, REQUEST, RESPONSE)
 
    security.declareProtected(View, 'Format')
    def Format(self):
        """ Dublin Core element - resource format """

src/p/r/Products.StandardCacheManagers-2.13.0/src/Products/StandardCacheManagers/RAMCacheManager.py   Products.StandardCacheManagers(Download)
            return cache
 
    security.declareProtected(view_management_screens, 'getSettings')
    def getSettings(self):
        'Returns the current cache settings.'
        return res
 
    security.declareProtected(view_management_screens, 'manage_main')
    manage_main = DTMLFile('dtml/propsRCM', globals())
 
    security.declareProtected('Change cache managers', 'manage_editProps')
                self, REQUEST, manage_tabs_message='Properties changed.')
 
    security.declareProtected(view_management_screens, 'manage_stats')
    manage_stats = DTMLFile('dtml/statsRCM', globals())
 
        return sort_by, sort_reverse
 
    security.declareProtected(view_management_screens, 'getCacheReport')
    def getCacheReport(self):
        """

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