Module disco :: Class DiscussionGroupsBrowser
[hide private]
[frames] | no frames]

Class DiscussionGroupsBrowser

source code


For browsing pubsub-based discussion groups service
Instance Methods [hide private]
 
__init__(self, account, jid, node) source code
 
_create_treemodel(self)
Create treemodel for the window
source code
 
_add_items(self, jid, node, items, force) source code
 
_in_list_foreach(self, model, path, iter_, node) source code
 
_in_list(self, node) source code
 
_add_item(self, jid, node, parent_node, item, force)
Called when we got basic information about new node from query.
source code
 
_get_child_iter(self, parent_iter, node) source code
 
_get_iter(self, node)
Look for an iter with the given node
source code
 
_add_actions(self)
Add the action buttons to the buttonbox for actions the browser can perform
source code
 
_clean_actions(self)
Remove the action buttons specific to this browser
source code
 
update_actions(self)
Called when user selected a row.
source code
 
on_post_button_clicked(self, widget)
Called when 'post' button is pressed.
source code
 
on_subscribe_button_clicked(self, widget)
Called when 'subscribe' button is pressed.
source code
 
on_unsubscribe_button_clicked(self, widget)
Called when 'unsubscribe' button is pressed.
source code
 
_on_pep_subscriptions(self, conn, request)
We got the subscribed groups list stanza.
source code
 
_on_pep_subscribe(self, conn, request, groupnode)
We have just subscribed to a node.
source code
 
_on_pep_unsubscribe(self, conn, request, groupnode)
We have just unsubscribed from a node.
source code

Inherited from AgentBrowser: browse, cleanup, default_action, on_browse_button_clicked, prepare_window, update_theme

Method Details [hide private]

__init__(self, account, jid, node)
(Constructor)

source code 
Overrides: AgentBrowser.__init__

_create_treemodel(self)

source code 
Create treemodel for the window
Overrides: AgentBrowser._create_treemodel

_add_items(self, jid, node, items, force)

source code 

_in_list_foreach(self, model, path, iter_, node)

source code 

_in_list(self, node)

source code 

_add_item(self, jid, node, parent_node, item, force)

source code 
Called when we got basic information about new node from query. Show the item
Overrides: AgentBrowser._add_item

_get_child_iter(self, parent_iter, node)

source code 

_get_iter(self, node)

source code 
Look for an iter with the given node

_add_actions(self)

source code 
Add the action buttons to the buttonbox for actions the browser can perform
Overrides: AgentBrowser._add_actions
(inherited documentation)

_clean_actions(self)

source code 
Remove the action buttons specific to this browser
Overrides: AgentBrowser._clean_actions
(inherited documentation)

update_actions(self)

source code 
Called when user selected a row. Make subscribe/unsubscribe buttons sensitive appropriatelly
Overrides: AgentBrowser.update_actions

on_post_button_clicked(self, widget)

source code 
Called when 'post' button is pressed. Open window to create post

on_subscribe_button_clicked(self, widget)

source code 
Called when 'subscribe' button is pressed. Send subscribtion request

on_unsubscribe_button_clicked(self, widget)

source code 
Called when 'unsubscribe' button is pressed. Send unsubscription request

_on_pep_subscriptions(self, conn, request)

source code 
We got the subscribed groups list stanza. Now, if we already have items on the list, we should actualize them

_on_pep_subscribe(self, conn, request, groupnode)

source code 
We have just subscribed to a node. Update UI

_on_pep_unsubscribe(self, conn, request, groupnode)

source code 
We have just unsubscribed from a node. Update UI