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

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

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/persistence.py   ftw.publisher.sender(Download)
        return self._get_realm_registry() is None
 
    security.declarePrivate('getRealms')
    def getRealms(self):
        """
            return self.annotations.get('publisher-realms', PersistentList())
 
    security.declarePrivate('_setRealms')
    def _setRealms(self, list):
        """
        self.annotations['publisher-realms'] = list
 
    security.declarePrivate('appendRealm')
    def appendRealm(self, realm):
        """
        self._setRealms(list)
 
    security.declarePrivate('removeRealm')
    def removeRealm(self, realm):
        """
        self._setRealms(list)
 
    security.declarePrivate('_get_realm_registry')
    def _get_realm_registry(self):
        return component.queryUtility(IOverriddenRealmRegistry)

src/p/r/Products.QueueCatalog-1.6.0/Products/QueueCatalog/QueueCatalog.py   Products.QueueCatalog(Download)
    # CMF catalog tool methods.
    #
    security.declarePrivate('indexObject')
    def indexObject(self, object):
        """Add to catalog.
        """
        self.catalog_object(object, self.uidForObject(object))
 
    security.declarePrivate('unindexObject')
        self.uncatalog_object(self.uidForObject(object))
 
    security.declarePrivate('reindexObject')
    def reindexObject(self, object, idxs=None,update_metadata=1,uid=None):
        """Update catalog after object data has changed.
                            update_metadata=update_metadata)
 
    security.declarePrivate('uidForObject')
    def uidForObject(self, obj):
        """Get a catalog uid for the object. Allows the underlying catalog

src/f/t/ftw.upgrade-1.7.3/ftw/upgrade/step.py   ftw.upgrade(Download)
        self.portal = self.getToolByName('portal_url').getPortalObject()
 
    security.declarePrivate('__call__')
    def __call__(self):
        """This method is implemented in each upgrade step with the
        tasks the upgrade should perform.
        """
        raise NotImplementedError()
 
    security.declarePrivate('getToolByName')
        return getToolByName(self.portal_setup, tool_name)
 
    security.declarePrivate('objects')
    def objects(self, catalog_query, message, logger=None):
        """Queries the catalog (unrestricted) and an iterator with full
        return ProgressLogger(message, objects, logger=logger)
 
    security.declarePrivate('catalog_rebuild_index')
    def catalog_rebuild_index(self, name):
        """Reindex the ``portal_catalog`` index identified by ``name``.
        LOG.info("Reindexing index %s DONE" % name)
 
    security.declarePrivate('catalog_reindex_objects')
    def catalog_reindex_objects(self, query, idxs=None):
        """Reindex all objects found in the catalog with `query`.

src/f/t/ftw.upgrade-1.7.3/ftw/upgrade/browser/manage.py   ftw.upgrade(Download)
        logging.root.removeHandler(self.handler)
 
    security.declarePrivate('write')
    def write(self, line):
        if isinstance(line, unicode):
        self.response.flush()
 
    security.declarePrivate('writelines')
    def writelines(self, lines):
        for line in lines:
        return super(ManageUpgrades, self).__call__(self)
 
    security.declarePrivate('install')
    def install(self):
        """Installs the selected upgrades.
                format_duration(time.time() - start)))
 
    security.declarePrivate('install_with_ajax_stream')
    def install_with_ajax_stream(self):
        """Installs the selected upgrades and streams the log into
        response.write('</html>')
 
    security.declarePrivate('get_data')
    def get_data(self):
        gstool = getToolByName(self.context, 'portal_setup')

src/f/t/ftw.upgrade-1.7.3/ftw/upgrade/progresslogger.py   ftw.upgrade(Download)
        self._counter = 0
 
    security.declarePrivate('__enter__')
    def __enter__(self):
        self.logger.info('STARTING %s' % self.message)
        return self
 
    security.declarePrivate('__exit__')
                    str(exc_value)))
 
    security.declarePrivate('__call__')
    def __call__(self):
        self._counter += 1
                self.message))
 
    security.declarePrivate('__iter__')
    def __iter__(self):
        with self as step:
            for item in self.iterable:
                yield item
                step()
 
    security.declarePrivate('should_be_logged')

src/f/t/ftw.upgrade-1.7.3/ftw/upgrade/gatherer.py   ftw.upgrade(Download)
        self.cyclic_dependencies = False
 
    security.declarePrivate('get_upgrades')
    def get_upgrades(self):
        return self._sort_profiles_by_dependencies(self._get_profiles())
 
    security.declarePrivate('_get_profiles')
            yield data
 
    security.declarePrivate('_get_profile_data')
    def _get_profile_data(self, profileid):
        db_version = self.portal_setup.getLastVersionForProfile(profileid)
        return data
 
    security.declarePrivate('_get_profile_upgrades')
    def _get_profile_upgrades(self, profileid):
        proposed_ids = set()
        return upgrades
 
    security.declarePrivate('_is_profile_installed')
    def _is_profile_installed(self, profileid):
        version = self.portal_setup.getLastVersionForProfile(profileid)

src/f/t/ftw.upgrade-1.7.3/ftw/upgrade/executioner.py   ftw.upgrade(Download)
        self.portal_setup = portal_setup
 
    security.declarePrivate('install')
    def install(self, data):
        for profileid, upgradeids in data:
            adapter()
 
    security.declarePrivate('_upgrade_profile')
    def _upgrade_profile(self, profileid, upgradeids):
        last_dest_version = None
            profileid, last_dest_version)
 
    security.declarePrivate('_do_upgrade')
    def _do_upgrade(self, profileid, upgradeid):
        start = time.time()
        return step.dest
 
    security.declarePrivate('_get_sorted_post_upgrade_adapters')
    def _get_sorted_post_upgrade_adapters(self):
        """Returns a list of post upgrade adapters, sorted by

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/extractor.py   ftw.publisher.sender(Download)
    security = ClassSecurityInformation()
 
    security.declarePrivate('__call__')
    def __call__(self, object, action):
        """
        return jsondata
 
    security.declarePrivate('getMetadata')
    def getMetadata(self, action):
        """
        return data
 
    security.declarePrivate('getRelativePath')
    def getRelativePath(self):
        """
        return relative_path
 
    security.declarePrivate('convertToJson')
    def convertToJson(self, data):
        """

src/f/t/ftw.publisher.core-2.4.0/ftw/publisher/core/adapters/interface_data.py   ftw.publisher.core(Download)
        self.adapted = IMarkerInterfaces(self.object)
 
    security.declarePrivate('getData')
    def getData(self):
        """returns all important data"""
        return self.getInterfaceData()
 
    security.declarePrivate('getInterfaceData')
        return self.adapted.getDirectlyProvidedNames()
 
    security.declarePrivate('setData')
    def setData(self, interfacedata, metadata):
        """

src/f/t/ftw.publisher.core-2.4.0/ftw/publisher/core/adapters/field_data.py   ftw.publisher.core(Download)
        self.object = object
 
    security.declarePrivate('getData')
    def getData(self):
        """returns all important data"""
        return self.getFieldData()
 
    security.declarePrivate('getFieldData')
        return data
 
    security.declarePrivate('fieldSerialization')
    def fieldSerialization(self, field, value):
        """
        return value
 
    security.declarePrivate('setData')
    def setData(self, fielddata, metadata):
        """sets all important field data

  1 | 2  Next