Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(401)  |  Call(401)  |  Derive(0)  |  Import(0)
Declare names to be inaccessible to restricted code.

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSPythonScript.py   Products.CMFCore(Download)
    security.declareProtected(View, 'index_html',)
    # Prevent the bindings from being edited TTW
    security.declarePrivate('ZBindings_edit','ZBindingsHTML_editForm',
                            'ZBindingsHTML_editAction')
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSPageTemplate.py   Products.CMFCore(Download)
 
    # Declare security for unprotected PageTemplate methods.
    security.declarePrivate('pt_edit', 'write')
 
    def __init__(self, id, filepath, fullname=None, properties=None):
 
 
    security.declarePrivate('read')
    def read(self):
        # Tie in on an opportunity to auto-update
        return 'file:%s' % self._filepath
 
    security.declarePrivate( '_ZPT_exec' )
    _ZPT_exec = ZopePageTemplate._exec.im_func
 
    security.declarePrivate( '_exec' )

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/DiscussionItem.py   Products.CMFDefault(Download)
        return talkback._getReplyParent( self.in_reply_to )
 
    security.declarePrivate(View, 'setReplyTo')
    def setReplyTo( self, reply_to ):
        """
                    REQUEST.RESPONSE.notFoundError("%s\n%s" % (name, ''))
 
    security.declarePrivate('manage_afterAdd')
    def manage_afterAdd(self, item, container):
        """
                obj.__of__(self).indexObject()
 
    security.declarePrivate('manage_afterClone')
    def manage_afterClone(self, item):
        """
            obj.__of__(self).notifyWorkflowCreated()
 
    security.declarePrivate( 'manage_beforeDelete' )
    def manage_beforeDelete(self, item, container):
        """
            return self._repcount( replies )
 
    security.declarePrivate('_repcount')
    def _repcount( self, replies ):
        """  counts the total number of replies by recursing thru the various levels

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/ActionInformation.py   Products.CMFCore(Download)
    security = ClassSecurityInfo()
 
    security.declarePrivate('listActions')
    def listActions(self):
        """ List the actions defined in this category and its subcategories.
                delattr(self, attr)
 
    security.declarePrivate('getInfoData')
    def getInfoData(self):
        """ Get the data needed to create an ActionInfo.
                 )
 
    security.declarePrivate('edit')
    def edit( self
            , id=_unchanged
        return self.description
 
    security.declarePrivate( 'testCondition' )
    def testCondition( self, ec ):
 
        return ActionInfo(self, ec)
 
    security.declarePrivate( '_getActionObject' )
    def _getActionObject( self ):
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSPropertiesObject.py   Products.CMFCore(Download)
 
    # Declare all (inherited) mutating methods private.
    security.declarePrivate('manage_addProperty')
    security.declarePrivate('manage_editProperties')
    security.declarePrivate('manage_delProperties')
    security.declarePrivate('manage_changeProperties')
    security.declarePrivate('manage_propertiesForm')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/FSZSQLMethod.py   Products.CMFCore(Download)
 
    # Make mutators private
    security.declarePrivate('manage_main')
    security.declarePrivate('manage_edit')
    security.declarePrivate('manage_advanced')
    security.declarePrivate('manage_advancedForm')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/WorkflowTool.py   Products.CMFCore(Download)
    #   'IActionProvider' interface methods
    #
    security.declarePrivate('listActions')
    def listActions(self, info=None, object=None):
 
    #   'IWorkflowTool' interface methods
    #
    security.declarePrivate('getCatalogVariablesFor')
    def getCatalogVariablesFor(self, ob):
        """ Get a mapping of "workflow-relevant" attributes.
        return res
 
    security.declarePrivate('notifyCreated')
    def notifyCreated(self, ob):
        """ Notify all applicable workflows that an object has been created.
        self._reindexWorkflowVariables(ob)
 
    security.declarePrivate('notifyBefore')
    def notifyBefore(self, ob, action):
        """ Notify all applicable workflows of an action before it happens.
            notify(ActionWillBeInvokedEvent(ob, wf, action))
 
    security.declarePrivate('notifySuccess')
    def notifySuccess(self, ob, action, result=None):
        """ Notify all applicable workflows that an action has taken place.

src/p/r/Products.GenericSetup-1.7.4/Products/GenericSetup/registry.py   Products.GenericSetup(Download)
        return self._exportTemplate().encode('utf-8')
 
    security.declarePrivate('getStep')
    def getStep(self, key, default=None):
        """ Return the I(Export|Import)Plugin registered for 'key'.
        return _resolveDottedName(info['handler'])
 
    security.declarePrivate('unregisterStep')
    def unregisterStep(self, id):
        del self._registered[id]
 
    security.declarePrivate('clear')
        self._registered.clear()
 
    security.declarePrivate('parseXML')
    def parseXML(self, text, encoding='utf-8'):
        """ Parse 'text'.
        return result
 
    security.declarePrivate('registerStep')
    def registerStep(self, id, version=None, handler=None, dependencies=(),
                     title=None, description=None):

src/z/o/Zope2-2.13.22/src/OFS/Cache.py   Zope2(Download)
    _isCacheable = 1
 
    security.declarePrivate('ZCacheable_getManager')
    def ZCacheable_getManager(self):
        '''Returns the currently associated cache manager.'''
            return None
 
    security.declarePrivate('ZCacheable_getCache')
    def ZCacheable_getCache(self):
        '''Gets the cache associated with this object.
        return c
 
    security.declarePrivate('ZCacheable_isCachingEnabled')
    def ZCacheable_isCachingEnabled(self):
        '''
        return self.__enabled and self.ZCacheable_getCache()
 
    security.declarePrivate('ZCacheable_getObAndView')
    def ZCacheable_getObAndView(self, view_name):
        """
        Returns self and view_name unchanged.
        """
        return self, view_name
 
    security.declarePrivate('ZCacheable_get')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/CookieCrumbler.py   Products.CMFCore(Download)
    log_username = True
 
    security.declarePrivate('delRequestVar')
    def delRequestVar(self, req, name):
        # No errors of any sort may propagate, and we don't care *what*
 
    # Allow overridable cookie set/expiration methods.
    security.declarePrivate('getCookieMethod')
    def getCookieMethod(self, name, default=None):
        return getattr(self, name, default)
 
    security.declarePrivate('defaultSetAuthCookie')
                       path=self.getCookiePath(), **kw)
 
    security.declarePrivate('defaultExpireAuthCookie')
    def defaultExpireAuthCookie(self, resp, cookie_name):
        resp.expireCookie(cookie_name, path=self.getCookiePath())
                medusa_headers['authorization'] = request._auth
 
    security.declarePrivate('modifyRequest')
    def modifyRequest(self, req, resp):
        """Copies cookie-supplied credentials to the basic auth fields.

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