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/a/c/actionbar.babble-0.3b3/src/actionbar/babble/browser/chat.py   actionbar.babble(Download)
    def render_chat_box(self, chat_id, box_id, tzoffset):
        """ """
        if chat_id == 'actionbar_babble_online_contacts':
            online_users = utils.get_online_members(self.context)
            template = ViewPageTemplateFile('templates/onlinecontacts.pt')

src/b/a/babble.client-2.0/src/babble/client/portlets/onlinecontacts.py   babble.client(Download)
    def get_online_members(self):
        return utils.get_online_members(self.context)
 
    def get_id(self):
        """ """

src/b/a/babble.client-2.0/src/babble/client/tests/test_chat.py   babble.client(Download)
        self.assertEquals(online_users, [])
 
        online_members = utils.get_online_members(portal)
        self.assertEquals(online_members, [])
 
        # get_online_users), get_online_members will still return an empty
        # list.
        online_members = utils.get_online_members(portal)
        self.assertEquals(online_members, [])
 
        # Again, the logged in username2 is ignored
        member1 = self.mtool.getMemberById(username1)
        online_members = utils.get_online_members(portal)
        self.assertEquals(online_members, [member1])
        self.logout()
 
        # Now the logged in username1 is ignored
        self.login(name=username1)
        member2 = self.mtool.getMemberById(username2)
        online_members = utils.get_online_members(portal)