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

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

src/p/r/Products.Bitakora-1.1/Products/Bitakora/BitakoraCommunity.py   Products.Bitakora(Download)
    def _addLocalizer(self):
        """ Add Localizer stuff """
        try:
            # old MessageCatalog
            self._setObject('gettext',
                            MessageCatalog('gettext', '', ('en', 'eu', 'es')))
        except:
            # new MessageCatalog
            self._setObject('gettext',
        localizer = Localizer('Localizer', ('en',))
        localizer._v_hook = 1
        self._setObject('Localizer', localizer)
 
    def manage_options(self):
    def _addOthers(self):
        """ Add other stuff """
        self.manage_addUserFolder()
        self._setObject('cookie_authentication',
                        CookieCrumbler('cookie_authentication'))
 
    def _addCatalog(self):
        """ Add ZCatalog instance """
        self._setObject('Catalog', ZCatalog.ZCatalog('Catalog', 'Catalog'))

src/g/o/gocept.linkchecker-3.0a9/src/gocept/linkchecker/database.py   gocept.linkchecker(Download)
        link = gocept.linkchecker.link.Link(link, link_id, object.UID())
        # Now we can add the link to the database
        self._setObject(link_id, link)
        return self[link_id]
 

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)
 

src/b/a/babble.server-1.1/babble/server/messagebox.py   babble.server(Download)
    def addMessage(self, text, author, fullname):
        """ Add a message to the MessageBox """
        message = Message(text, author, fullname)
        self._setObject(message.id, message)
        return message