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/z/o/Zope-HEAD/src/OFS/PropertySheets.py   Zope(Download)
        return self.id
 
    security.declareProtected(access_contents_information, 'xml_namespace')
    def xml_namespace(self):
        # Return a namespace string usable as an xml namespace
        return 1
 
    security.declareProtected(access_contents_information, 'hasProperty')
    def hasProperty(self, id):
        # Return a true value if a property exists with the given id.
        return 0
 
    security.declareProtected(access_contents_information, 'getProperty')
    def getProperty(self, id, default=None):
        # Return the property with the given id, returning the optional
        return default
 
    security.declareProtected(access_contents_information, 'getPropertyType')
    def getPropertyType(self, id):
        """Get the type of property 'id', returning None if no
        pself._properties=tuple(i for i in pself._properties if i['id'] != id)
 
    security.declareProtected(access_contents_information, 'propertyIds')
    def propertyIds(self):
        # Return a list of property ids.

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/RegistrationTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainRegistrationTool', _dtmldir )
 
    security.declareProtected(ManagePortal, 'manage_configuration')
    manage_configuration = DTMLFile('configureRegistrationTool', _dtmldir)
 
    security.declareProtected(ManagePortal, 'manage_editIDPattern')
            return self.manage_configuration(manage_tabs_message=msg)
 
    security.declareProtected(ManagePortal, 'getIDPattern')
    def getIDPattern(self):
        """ Return the currently-used member ID pattern """
        return self.member_id_pattern
 
    security.declareProtected(ManagePortal, 'getDefaultIDPattern')

src/z/o/Zope2-2.13.22/src/Products/ZReST/ZReST.py   Zope2(Download)
 
    # access to the source text and formatted text
    security.declareProtected('View', 'index_html')
    def index_html(self, REQUEST=None):
        ''' Getting the formatted text
        return self.render()
 
    security.declareProtected('View', 'source_txt')
    def source_txt(self, REQUEST=None):
        ''' Getting the source text
 
    # edit form, which is also the primary interface
    security.declareProtected('Edit ReStructuredText', 'manage_main')
    manage_main = DTMLFile('dtml/manage_editForm', globals())
 
    # edit action
    security.declareProtected('Edit ReStructuredText', 'manage_edit')
 
    # handle uploads too
    security.declareProtected('Edit ReStructuredText', 'manage_upload')
    def manage_upload(self, file='', REQUEST=None):
        ''' Replaces the current source with the upload.

src/z/o/Zope2-2.13.22/src/OFS/ZDOM.py   Zope2(Download)
    # --------------
 
    security.declareProtected(access_contents_information, 'getNodeName')
    def getNodeName(self):
        """The name of this node, depending on its type"""
        return None
 
    security.declareProtected(access_contents_information, 'getNodeValue')
        return None
 
    security.declareProtected(access_contents_information, 'getParentNode')
    def getParentNode(self):
        """The parent of this node.  All nodes except Document
        DocumentFragment and Attr may have a parent"""
        return None
 
    security.declareProtected(access_contents_information, 'getChildNodes')
        return NodeList()
 
    security.declareProtected(access_contents_information, 'getFirstChild')
    def getFirstChild(self):
        """The first child of this node. If there is no such node

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/ActionInformation.py   Products.CMFCore(Download)
            self.link_target = link_target
 
    security.declareProtected( View, 'Title' )
    def Title(self):
 
        """ Return the Action title.
        """
        return self.title or self.getId()
 
    security.declareProtected( View, 'Description' )

src/z/o/Zope2-2.13.22/src/webdav/NullResource.py   Zope2(Download)
        raise NotFound, 'The requested resource was not found.'
 
    security.declareProtected(View, 'HEAD')
    def HEAD(self, REQUEST, RESPONSE):
        """Retrieve resource information without a response message body."""
        return RESPONSE
 
    security.declareProtected(add_folders, 'MKCOL')
    def MKCOL(self, REQUEST, RESPONSE):
        """Create a new collection resource."""
        return RESPONSE
 
    security.declareProtected(webdav_lock_items, 'LOCK')
    def LOCK(self, REQUEST, RESPONSE):
        """ LOCK on a Null Resource makes a LockNullResource instance """
    manage_options = ({'label': 'Info', 'action': 'manage_main'},)
 
    security.declareProtected(View, 'manage')
    security.declareProtected(View, 'manage_main')
    manage = manage_main = DTMLFile('dtml/locknullmain', globals())

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/ActionsTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainActionsTool', _dtmldir )
    manage_actionProviders = DTMLFile('manageActionProviders', _dtmldir)
 
    security.declareProtected(ManagePortal, 'manage_aproviders')
                          , manage_tabs_message='Providers changed.')
 
    security.declareProtected( ManagePortal, 'manage_editActionsForm' )
    def manage_editActionsForm( self, REQUEST, manage_tabs_message=None ):
        """ Show the 'Actions' management tab.
    #   Programmatically manipulate the list of action providers
    #
    security.declareProtected(ManagePortal, 'listActionProviders')
    def listActionProviders(self):
        """ List the ids of all Action Providers queried by this tool.
        """
        return self.action_providers
 
    security.declareProtected(ManagePortal, 'addActionProvider')

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/DiscussionItem.py   Products.CMFDefault(Download)
    security = ClassSecurityInfo()
 
    security.declareProtected(View, 'listCreators')
    def listCreators(self):
        """ List Dublin Core Creator elements - resource authors.
    #   IDiscussionResponse interface
    #
    security.declareProtected(View, 'inReplyTo')
    def inReplyTo( self, REQUEST=None ):
        """ Return the IDiscussable object to which we are a reply.
            self.in_reply_to = None
 
    security.declareProtected(View, 'parentsInThread')
    def parentsInThread( self, size=0 ):
        """
        self._container = PersistentMapping()
 
    security.declareProtected(View, 'getId')
    def getId( self ):
        return self.id
 
    security.declareProtected(View, 'getReply')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSPageTemplate.py   Products.CMFCore(Download)
    security.declareObjectProtected(View)
 
    security.declareProtected(ViewManagementScreens, 'manage_main')
    manage_main = DTMLFile('custpt', _dtmldir)
 
    _default_bindings = ZopePageTemplate._default_bindings
 
    security.declareProtected(View, '__call__')
 
    def pt_macros(self):
        return result
 
    security.declareProtected(ViewManagementScreens, 'pt_source_file')
    def pt_source_file(self):
 
 
    # Copy over more methods
    security.declareProtected(FTPAccess, 'manage_FTPget')
    manage_FTPget = ZopePageTemplate.manage_FTPget.im_func
 
    security.declareProtected(View, 'get_size')

src/p/r/Products.GenericSetup-1.7.4/Products/GenericSetup/context.py   Products.GenericSetup(Download)
        self._should_purge = True
 
    security.declareProtected(ManagePortal, 'getLogger')
    def getLogger(self, name):
        """Get a logger with the specified name, creating it if necessary.
        """
        return logging.getLogger('GenericSetup.%s' % name)
 
    security.declareProtected(ManagePortal, 'shouldPurge')
        self._should_purge = True
 
    security.declareProtected( ManagePortal, 'getSite' )
    def getSite( self ):
 
        """ See ISetupContext.
        """
        return aq_self(self._site)
 
    security.declareProtected( ManagePortal, 'getSetupTool' )
        return self._tool
 
    security.declareProtected( ManagePortal, 'getEncoding' )
    def getEncoding( self ):
 

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