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/Zope2-2.13.22/src/Products/SiteAccess/VirtualHostMonster.py   Zope2(Download)
                    {'label':'Mappings', 'action':'manage_edit'})
 
    security.declareProtected(View, 'manage_main')
    manage_main = DTMLFile('www/VirtualHostMonster', globals(),
                           __name__='manage_main')
 
    security.declareProtected('Add Site Roots', 'manage_edit')
    manage_edit = DTMLFile('www/manage_edit', globals())
 
    security.declareProtected('Add Site Roots', 'set_map')

src/z/o/Zope-HEAD/src/Shared/DC/Scripts/Bindings.py   Zope(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.DCWorkflow-2.3.0-beta/Products/DCWorkflow/Guard.py   Products.DCWorkflow(Download)
        return 1
 
    security.declareProtected(ManagePortal, 'getSummary')
    def getSummary(self):
        # Perhaps ought to be in DTML.
        return res
 
    security.declareProtected(ManagePortal, 'getPermissionsText')
    def getPermissionsText(self):
        if not self.permissions:
            return ''
        return '; '.join(self.permissions)
 
    security.declareProtected(ManagePortal, 'getRolesText')
        return '; '.join(self.roles)
 
    security.declareProtected(ManagePortal, 'getGroupsText')
    def getGroupsText(self):
        if not self.groups:
            return ''
        return '; '.join(self.groups)
 
    security.declareProtected(ManagePortal, 'getExprText')

src/z/o/Zope-HEAD/src/Products/SiteAccess/VirtualHostMonster.py   Zope(Download)
                    {'label':'Mappings', 'action':'manage_edit'})
 
    security.declareProtected(View, 'manage_main')
    manage_main = DTMLFile('www/VirtualHostMonster', globals(),
                           __name__='manage_main')
 
    security.declareProtected('Add Site Roots', 'manage_edit')
    manage_edit = DTMLFile('www/manage_edit', globals())
 
    security.declareProtected('Add Site Roots', 'set_map')

src/p/r/Products.MailHost-2.13.1/src/Products/MailHost/MailHost.py   Products.MailHost(Download)
        self.smtp_port = smtp_port
 
    security.declareProtected(change_configuration, 'manage_makeChanges')
    def manage_makeChanges(self,
                           title,
            return self.manage_main(self, REQUEST, manage_tabs_message=msg)
 
    security.declareProtected(use_mailhost_services, 'sendTemplate')
    def sendTemplate(trueself,
                     self,
            return "SEND OK"
 
    security.declareProtected(use_mailhost_services, 'send')
    def send(self,
             messageText,
    # This is here for backwards compatibility only. Possibly it could
    # be used to send messages at a scheduled future time, or via a mail queue?
    security.declareProtected(use_mailhost_services, 'scheduledSend')
    scheduledSend = send
 
    security.declareProtected(use_mailhost_services, 'simple_send')

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/DiscussionTool.py   Products.CMFDefault(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainDiscussionTool', _dtmldir )
 

src/p/r/Products.CMFTopic-2.3.0-beta/Products/CMFTopic/DateCriteria.py   Products.CMFTopic(Download)
        return self._defaultDateOptions
 
    security.declareProtected( ChangeTopics, 'getEditForm' )
    def getEditForm( self ):
        """
        return 'friendlydatec_editform'
 
    security.declareProtected( ChangeTopics, 'edit' )
    def edit( self
            , value=None
            raise ValueError, 'Date range not in set {old,ahead}'
 
    security.declareProtected(View, 'getCriteriaItems')
    def getCriteriaItems( self ):
        """

src/p/r/Products.DCWorkflow-2.3.0-beta/Products/DCWorkflow/exportimport.py   Products.DCWorkflow(Download)
        self._obj = obj
 
    security.declareProtected( ManagePortal, 'getWorkflowInfo' )
    def getWorkflowInfo( self, workflow_id ):
 
        return workflow_info
 
    security.declareProtected( ManagePortal, 'generateWorkflowXML' )
    def generateWorkflowXML(self):
        """ Pseudo API.
        """
        return self._workflowConfig(workflow_id=self._obj.getId())\
            .encode('utf-8')
 
    security.declareProtected( ManagePortal, 'getWorkflowScripts' )
        return self._extractScripts(self._obj)
 
    security.declareProtected( ManagePortal, 'parseWorkflowXML' )
    def parseWorkflowXML( self, xml, encoding='utf-8' ):
        """ Pseudo API.

src/p/r/Products.GenericSetup-1.7.4/Products/GenericSetup/utils.py   Products.GenericSetup(Download)
        self._encoding = encoding
 
    security.declareProtected(ManagePortal, 'parseXML')
    def parseXML(self, xml):
        """ Pseudo API.
        self._template = self._getExportTemplate()
 
    security.declareProtected(ManagePortal, 'generateXML')
    def generateXML(self, **kw):
        """ Pseudo API.

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/UndoTool.py   Products.CMFCore(Download)
    #   ZMI methods
    #
    security.declareProtected(ManagePortal, 'manage_overview')
    manage_overview = DTMLFile( 'explainUndoTool', _dtmldir )
 
    #
    #   'IUndoTool' interface methods
    #
    security.declareProtected(ListUndoableChanges, 'listUndoableTransactionsFor')

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