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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/g/o/gocept.linkchecker-3.0a9/src/gocept/linkchecker/database.py   gocept.linkchecker(Download)
 
        # Setup the link catalog
        if 'link_catalog' not in self.objectIds():
            self.manage_addProduct['ZCatalog'].\
                    manage_addZCatalog('link_catalog', 'Link catalog')
 
        # Setup the url catalog
        if 'url_catalog' not in self.objectIds():
            self.manage_addProduct['ZCatalog'].\
                    manage_addZCatalog('url_catalog', 'URL catalog')
    def _register_link(self, link, object):
        link_id = gocept.linkchecker.utils.hash_link(link, object)
        if link_id in self.objectIds():
            return
        link = gocept.linkchecker.link.Link(link, link_id, object.UID())
           Warning: This is likely to be a slow method in large data sets.
        """
        return self.objectIds(['Link'])
 
    security.declareProtected(

src/b/a/babble.server-1.1/babble/server/conversation.py   babble.server(Download)
        """
        owner = hashed(owner)
        if owner not in self.objectIds():
            self._setObject(owner, MessageBox(owner))
        return self._getOb(owner)

src/b/a/babble.server-1.1/babble/server/chatroom.py   babble.server(Download)
 
        owner = hashed(owner)
        if owner not in self.objectIds():
            self._setObject(owner, MessageBox(owner))
        return self._getOb(owner)