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.ZSQLMethods-2.13.4/src/Shared/DC/ZRDB/DA.py   Products.ZSQLMethods(Download)
        self.manage_edit(title, connection_id, arguments, template)
 
    security.declareProtected(view_management_screens, 'manage_advancedForm')
    manage_advancedForm=DTMLFile('dtml/advanced', globals())
 
                                connection_id=connection_id, src=template)
 
    security.declareProtected(change_database_methods, 'manage_edit')
    def manage_edit(self,title,connection_id,arguments,template,
                    SUBMIT='Change', dtpref_cols='100%', dtpref_rows='20',
 
 
    security.declareProtected(change_database_methods, 'manage_advanced')
    def manage_advanced(self, max_rows, max_cache, cache_time,
                        class_name, class_file, direct=None,
            return self.manage_advancedForm(self,REQUEST,manage_tabs_message=m)
 
    security.declareProtected(view_management_screens, 'PrincipiaSearchSource')
    def PrincipiaSearchSource(self):
        """Return content for use by the Find machinery."""
    default_content_type = 'text/plain'
 
    security.declareProtected(view_management_screens, 'document_src')
    def document_src(self, REQUEST=None, RESPONSE=None):
        """Return unprocessed document source."""

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/DiscussionTool.py   Products.CMFCore(Download)
        self.content = content
 
    security.declareProtected(ReplyToItem, 'createReply')
    def createReply(self, title, text, REQUEST, RESPONSE):
        """
        return location, `id`
 
    security.declareProtected(View, 'getReplyResults')
    def getReplyResults(self):
        """
                                      urllib.unquote('/'+self.absolute_url(1)))
 
    security.declareProtected(View, 'getReplies')
    def getReplies(self):
        """
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainDiscussionTool', _dtmldir )
 

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

src/p/r/Products.ZCatalog-3.0.2/src/Products/ZCatalog/ZCatalogIndexes.py   Products.ZCatalog(Download)
    security.declareObjectProtected(manage_zcatalog_indexes)
    security.setPermissionDefault(manage_zcatalog_indexes, ('Manager', ))
    security.declareProtected(manage_zcatalog_indexes, 'addIndexForm')
    addIndexForm= DTMLFile('dtml/addIndexForm', globals())
 
        return indexes.get(id, default)
 
    security.declareProtected(manage_zcatalog_indexes, 'objectIds')
    def objectIds(self, spec=None):
        indexes = aq_parent(self)._catalog.indexes

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSFile.py   Products.CMFCore(Download)
    security.declareObjectProtected(View)
 
    security.declareProtected(ViewManagementScreens, 'manage_main')
    manage_main = DTMLFile('custfile', _dtmldir)
 
        return self.getModTime()
 
    security.declareProtected(View, 'index_html')
    def index_html(self, REQUEST, RESPONSE):
        """
        return _FSCacheHeaders(self)
 
    security.declareProtected(View, 'getContentType')
    def getContentType(self):
        """Get the content type of a file or image.
        return self.content_type
 
    security.declareProtected(FTPAccess, 'manage_FTPget')
    manage_FTPget = index_html
 

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/Favorite.py   Products.CMFDefault(Download)
        return uidtool.queryObject(uid, None)
 
    security.declareProtected(View, 'getRemoteUrl')
    def getRemoteUrl(self):
        """
            return utool()
 
    security.declareProtected(View, 'getIconURL')
    def getIconURL(self):
        """
            return '%s/p_/broken' % utool()
 
    security.declareProtected(View, 'getObject')
    def getObject(self):
        """ Get the actual object that the Favorite is linking to.

src/z/o/Zope2-2.13.22/src/HelpSys/HelpTopic.py   Zope2(Download)
        )
 
    security.declareProtected(View, 'SearchableText')
 
    security.declareProtected(View, 'url')
 
    security.declareProtected(access_contents_information, 'helpValues')
                self.reindex_object()
 
    security.declareProtected(View, 'index_html')
    def index_html(self, REQUEST, RESPONSE):
        "View the Help Topic"

src/p/r/Products.CMFTopic-2.3.0-beta/Products/CMFTopic/ListCriterion.py   Products.CMFTopic(Download)
        self.operator = None
 
    security.declareProtected( ChangeTopics, 'getEditForm' )
    def getEditForm( self ):
        """
        return "listc_edit"
 
    security.declareProtected( ChangeTopics, 'edit' )
    def edit( self, value=None, operator=None ):
        """
        self.operator = operator
 
    security.declareProtected(View, 'getCriteriaItems')
    def getCriteriaItems( self ):
        """

src/z/o/Zope2-2.13.22/src/Shared/DC/Scripts/Bindings.py   Zope2(Download)
    _Bindings_client = None
 
    security.declareProtected('Change bindings', 'ZBindings_edit')
    def ZBindings_edit(self, mapping):
        names = self._setupBindings(mapping)
        self._prepareBindCode()
        self._editedBindings()
 
    security.declareProtected('Change bindings', 'ZBindings_setClient')
        return names
 
    security.declareProtected(view_management_screens, 'getBindingAssignments')
    def getBindingAssignments(self):
        if not hasattr(self, '_bind_names'):

src/p/r/Products.SiteErrorLog-2.13.2/src/Products/SiteErrorLog/SiteErrorLog.py   Products.SiteErrorLog(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):

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