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.PythonScripts-2.13.2/src/Products/PythonScripts/PythonScript.py   Products.PythonScripts(Download)
 
    security.declareObjectProtected('View')
    security.declareProtected('View', '__call__')
 
    security.declareProtected('View management screens',
    ZPythonScriptHTML_editForm._setName('ZPythonScriptHTML_editForm')
 
    security.declareProtected('Change Python Scripts',
      'ZPythonScriptHTML_editAction',
      'ZPythonScript_setTitle', 'ZPythonScript_edit',
            % (self.id, user, roles))
 
    security.declareProtected('Change proxy roles',
      'manage_proxyForm', 'manage_proxy')
 
                    action ='manage_main')
 
    security.declareProtected('Change Python Scripts',
      'PUT', 'manage_FTPput', 'write',
      'manage_historyCopy',

src/z/o/Zope2-2.13.22/src/Products/PageTemplates/ZopePageTemplate.py   Zope2(Download)
 
    # protect methods from base class(es)
    security.declareProtected(view, '__call__')
    security.declareProtected(view_management_screens,
                              'read', 'ZScriptHTML_tryForm')
 
 
    security.declareProtected(change_page_templates, 'pt_edit')
    def pt_edit(self, text, content_type, keep_output_encoding=False):
 
    source_dot_xml = Src()
 
    security.declareProtected(change_page_templates, 'pt_editAction')
    def pt_editAction(self, REQUEST, title, text, content_type, expand):
        """Change the title and document."""
 
 
    security.declareProtected(change_page_templates, 'pt_setTitle')
    def pt_setTitle(self, title, encoding='utf-8'):
        if not isinstance(title, unicode):

src/z/o/Zope-HEAD/src/Products/PageTemplates/ZopePageTemplate.py   Zope(Download)
 
    # protect methods from base class(es)
    security.declareProtected(view, '__call__')
    security.declareProtected(view_management_screens,
                              'read', 'ZScriptHTML_tryForm')
 
 
    security.declareProtected(change_page_templates, 'pt_edit')
    def pt_edit(self, text, content_type, keep_output_encoding=False):
 
    source_dot_xml = Src()
 
    security.declareProtected(change_page_templates, 'pt_editAction')
    def pt_editAction(self, REQUEST, title, text, content_type, expand):
        """Change the title and document."""
 
 
    security.declareProtected(change_page_templates, 'pt_setTitle')
    def pt_setTitle(self, title, encoding='utf-8'):
        if not isinstance(title, unicode):

src/z/o/Zope2-2.13.22/src/OFS/Image.py   Zope2(Download)
    manage_editForm._setName('manage_editForm')
 
    security.declareProtected(view_management_screens, 'manage')
    security.declareProtected(view_management_screens, 'manage_main')
    manage=manage_main=manage_editForm
                    return True
 
    security.declareProtected(View, 'index_html')
    def index_html(self, REQUEST, RESPONSE):
        """
        return ''
 
    security.declareProtected(View, 'view_image_or_file')
    def view_image_or_file(self, URL1):
        """
        The default view of the contents of the File or Image.
        """
        raise Redirect, URL1
 
    security.declareProtected(View, 'PrincipiaSearchSource')

src/z/o/Zope-HEAD/src/OFS/Image.py   Zope(Download)
    manage_editForm._setName('manage_editForm')
 
    security.declareProtected(view_management_screens, 'manage')
    security.declareProtected(view_management_screens, 'manage_main')
    manage=manage_main=manage_editForm
                    return True
 
    security.declareProtected(View, 'index_html')
    def index_html(self, REQUEST, RESPONSE):
        """
        return ''
 
    security.declareProtected(View, 'view_image_or_file')
    def view_image_or_file(self, URL1):
        """
        The default view of the contents of the File or Image.
        """
        raise Redirect, URL1
 
    security.declareProtected(View, 'PrincipiaSearchSource')

src/z/o/Zope-HEAD/src/Products/Sessions/SessionDataManager.py   Zope(Download)
    # INTERFACE METHODS FOLLOW
 
    security.declareProtected(ACCESS_SESSIONDATA_PERM, 'getSessionData')
    def getSessionData(self, create=1):
        """ """
        key = self.getBrowserIdManager().getBrowserId(create=create)
        if key is not None:
            return self._getSessionDataObject(key)
 
    security.declareProtected(ACCESS_SESSIONDATA_PERM, 'hasSessionData')
        return self._hasSessionDataObject(key)
 
    security.declareProtected(ARBITRARY_SESSIONDATA_PERM,'getSessionDataByKey')
    def getSessionDataByKey(self, key):
        return self._getSessionDataObjectByKey(key)
 
    security.declareProtected(ACCESS_CONTENTS_PERM, 'getBrowserIdManager')
        self._requestSessionName = requestName
 
    security.declareProtected(CHANGE_DATAMGR_PERM, 'manage_changeSDM')
    def manage_changeSDM(self, title, path=None, requestName=None,
                         REQUEST=None):

src/p/r/Products.BTreeFolder2-2.13.4/src/Products/BTreeFolder2/BTreeFolder2.py   Products.BTreeFolder2(Download)
        )
 
    security.declareProtected(view_management_screens, 'manage_main')
    manage_main = DTMLFile('contents', globals())
 
                self._setOb(name, aq_base(value))
 
    security.declareProtected(view_management_screens, 'manage_fixCount')
    def manage_fixCount(self):
        """Calls self._fixCount() and reports the result as text.
        return old, new
 
    security.declareProtected(view_management_screens, 'manage_cleanup')
    def manage_cleanup(self):
        """Calls self._cleanup() and reports the result as text.
                return default
 
    security.declareProtected(access_contents_information, 'get')
    def get(self, name, default=None):
        return self._getOb(name, default)
                    del mti[meta_type]
 
    security.declareProtected(view_management_screens, 'getBatchObjectListing')
    def getBatchObjectListing(self, REQUEST=None):
        """Return a structure for a page template to show the list of objects.

src/z/o/Zope2-2.13.22/src/App/DavLockManager.py   Zope2(Download)
 
    security = ClassSecurityInfo()
    security.declareProtected('Manage WebDAV Locks',
                              'findLockedObjects', 'manage_davlocks',
                              'manage_unlockObjects')

src/z/o/Zope2-2.13.22/src/Products/Sessions/SessionDataManager.py   Zope2(Download)
    # INTERFACE METHODS FOLLOW
 
    security.declareProtected(ACCESS_SESSIONDATA_PERM, 'getSessionData')
    def getSessionData(self, create=1):
        """ """
        key = self.getBrowserIdManager().getBrowserId(create=create)
        if key is not None:
            return self._getSessionDataObject(key)
 
    security.declareProtected(ACCESS_SESSIONDATA_PERM, 'hasSessionData')
        return self._hasSessionDataObject(key)
 
    security.declareProtected(ARBITRARY_SESSIONDATA_PERM,'getSessionDataByKey')
    def getSessionDataByKey(self, key):
        return self._getSessionDataObjectByKey(key)
 
    security.declareProtected(ACCESS_CONTENTS_PERM, 'getBrowserIdManager')
        self._requestSessionName = requestName
 
    security.declareProtected(CHANGE_DATAMGR_PERM, 'manage_changeSDM')
    def manage_changeSDM(self, title, path=None, requestName=None,
                         REQUEST=None):

src/z/o/Zope-HEAD/src/App/DavLockManager.py   Zope(Download)
 
    security = ClassSecurityInfo()
    security.declareProtected('Manage WebDAV Locks',
                              'findLockedObjects', 'manage_davlocks',
                              'manage_unlockObjects')

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