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/OFS/DTMLMethod.py   Zope2(Download)
    # Careful in permission changes--used by DTMLDocument!
 
    security.declareProtected(change_dtml_methods, 'manage_historyCopy')
    security.declareProtected(change_dtml_methods, 'manage_beforeHistoryCopy')
    security.declareProtected(change_dtml_methods, 'manage_afterHistoryCopy')
 
    # More reasonable default for content-type for http HEAD requests.
    default_content_type = 'text/html'
 
    security.declareProtected(View, '__call__')
            self.ZCacheable_set(result, keywords=kw)
 
    security.declareProtected(change_dtml_methods, 'ZCacheable_configHTML')
    ZCacheable_configHTML = DTMLFile('dtml/cacheNamespaceKeys', globals())
 

src/z/o/Zope2-2.13.22/src/OFS/Cache.py   Zope2(Download)
    security.setPermissionDefault(ChangeCacheSettingsPermission, ('Manager',))
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_manage')
    ZCacheable_manage = DTMLFile('dtml/cacheable', globals())
                    exc_info=sys.exc_info())
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_invalidate')
    def ZCacheable_invalidate(self, view_name='', REQUEST=None):
        return mtime
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_getManagerId')
    def ZCacheable_getManagerId(self):
        '''Returns the id of the current ZCacheManager.'''
        return self.__manager_id
 
    security.declareProtected(ViewManagementScreensPermission,
        return None
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_getManagerIds')
    def ZCacheable_getManagerIds(self):

src/z/o/Zope2-2.13.22/src/OFS/PropertySheets.py   Zope2(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.Zelenium-1.0.3/Products/Zelenium/zuite.py   Products.Zelenium(Download)
    security.declareObjectProtected( View )
 
    security.declareProtected( ManageSeleniumTestCases, 'manage_main' )
    manage_main = DTMLFile( 'suiteMain', _WWW_DIR )
 
    security.declareProtected( View, 'index_html' )
    index_html = PageTemplateFile( 'suiteView', _WWW_DIR )
 
    security.declareProtected( View, 'test_suite_html' )
    test_suite_html = PageTemplateFile( 'suiteTests', _WWW_DIR )
 
    security.declareProtected( View, 'splash_html' )
    splash_html = PageTemplateFile( 'suiteSplash', _WWW_DIR )
 
    security.declareProtected( View, 'test_prompt_html' )

src/z/o/Zope-HEAD/src/OFS/DTMLMethod.py   Zope(Download)
    # Careful in permission changes--used by DTMLDocument!
 
    security.declareProtected(change_dtml_methods, 'manage_historyCopy')
    security.declareProtected(change_dtml_methods, 'manage_beforeHistoryCopy')
    security.declareProtected(change_dtml_methods, 'manage_afterHistoryCopy')
 
    # More reasonable default for content-type for http HEAD requests.
    default_content_type = 'text/html'
 
    security.declareProtected(View, '__call__')
            self.ZCacheable_set(result, keywords=kw)
 
    security.declareProtected(change_dtml_methods, 'ZCacheable_configHTML')
    ZCacheable_configHTML = DTMLFile('dtml/cacheNamespaceKeys', globals())
 

src/d/m/dm.zopepatches.zclasses-0.1.1/dm/zopepatches/zclasses/Property.py   dm.zopepatches.zclasses(Download)
    security.declareObjectProtected(manage_zclasses)
 
    security.declareProtected(manage_zclasses, 'manage')
 
    def __init__(self, id, title):
    security.declareObjectProtected(access_contents_information)
 
    security.declareProtected(access_contents_information, 'hasProperty')
    security.declareProtected(access_contents_information, 'propertyIds')
    security.declareProtected(access_contents_information, 'propertyValues')
    security.declareProtected(access_contents_information, 'propertyItems')

src/z/o/Zope2-2.13.22/src/HelpSys/HelpSys.py   Zope2(Download)
        self.id=id
 
    security.declareProtected(access_contents_information, 'helpValues')
    def helpValues(self, spec=None):
        "ProductHelp objects of all Products that have help"
    # are returned.
 
    security.declareProtected(View, '__call__')
    def __call__(self, REQUEST=None, **kw):
        "Searchable interface"
        return LazyCat(results)
 
    security.declareProtected(View, 'searchResults')
    searchResults=__call__
 
    security.declareProtected(View, 'index_html')
    index_html=DTMLFile('dtml/frame', globals())
 
    security.declareProtected(View, 'menu')

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/PortalFolder.py   Products.CMFCore(Download)
    #   'IMutableMinimalDublinCore' interface methods
    #
    security.declareProtected(View, 'Title')
    def Title(self):
        """ Dublin Core Title element - resource name.
        """
        return self.title
 
    security.declareProtected(View, 'Description')
        return self.description
 
    security.declareProtected(View, 'Type')
    def Type(self):
        """ Dublin Core Type element - resource type.
        """
        ti = self.getTypeInfo()
        return ti is not None and ti.Title() or 'Unknown'
 
    security.declareProtected(ManageProperties, 'setTitle')
        self.title = title
 
    security.declareProtected(ManageProperties, 'setDescription')
    def setDescription(self, description):
        """ Set Dublin Core Description element - resource summary.

src/e/r/erp5-HEAD/product/Zelenium/zuite.py   erp5(Download)
    security.declareObjectProtected( View )
 
    security.declareProtected( ManageSeleniumTestCases, 'manage_main' )
    manage_main = DTMLFile( 'suiteMain', _WWW_DIR )
 
    security.declareProtected( View, 'index_html' )
    index_html = PageTemplateFile( 'suiteView', _WWW_DIR )
 
    security.declareProtected( View, 'test_suite_html' )
    test_suite_html = PageTemplateFile( 'suiteTests', _WWW_DIR )
 
    security.declareProtected( View, 'splash_html' )
    splash_html = PageTemplateFile( 'suiteSplash', _WWW_DIR )
 
    security.declareProtected( View, 'test_prompt_html' )

src/z/o/Zope-HEAD/src/OFS/Cache.py   Zope(Download)
    security.setPermissionDefault(ChangeCacheSettingsPermission, ('Manager',))
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_manage')
    ZCacheable_manage = DTMLFile('dtml/cacheable', globals())
                    exc_info=sys.exc_info())
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_invalidate')
    def ZCacheable_invalidate(self, view_name='', REQUEST=None):
        return mtime
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_getManagerId')
    def ZCacheable_getManagerId(self):
        '''Returns the id of the current ZCacheManager.'''
        return self.__manager_id
 
    security.declareProtected(ViewManagementScreensPermission,
        return None
 
    security.declareProtected(ViewManagementScreensPermission,
                              'ZCacheable_getManagerIds')
    def ZCacheable_getManagerIds(self):

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