Package flumotion :: Package admin :: Package gtk :: Module adminwindow :: Class AdminWindow
[hide private]

Class AdminWindow

source code

            extern.log.log.Loggable --+
                                      |
        gobject.GObject --+           |
                          |           |
    kiwi.ui.views.SlaveView --+       |
                              |       |
         kiwi.ui.views.BaseView --+   |
                                  |   |
kiwi.controllers.BaseController --+   |
                                  |   |
    kiwi.ui.delegates.GladeDelegate --+
                                      |
                                     AdminWindow

Creates the GtkWindow for the user interface. Also connects to the manager on the given host and port.

Instance Methods [hide private]
 
__init__(self)
Creates a new GladeDelegate.
source code
 
stateSet(self, state, key, value) source code
 
componentCallRemoteStatus(self, state, pre, post, fail, methodName, *args, **kwargs) source code
 
componentCallRemote(self, state, methodName, *args, **kwargs) source code
 
whsAppend(self, state, key, value) source code
 
whsRemove(self, state, key, value) source code
 
show(self)
Show the view's window.
source code
 
setDebugEnabled(self, enabled)
Set if debug should be enabled for the admin client window
source code
gtk.Window
getWindow(self)
Get the gtk window for the admin interface.
source code
 
openConnection(self, info, managerSpawner=None)
Connects to a manager given a connection info.
source code
 
_resize_vpaned(self, widget, minimize) source code
 
_eat_resize_vpaned_event(self, *args, **kwargs) source code
 
_createUI(self) source code
 
_connectActionProxy(self, action, widget) source code
 
_disconnectActionProxy(self, action, widget) source code
 
_setAdminModel(self, model)
set the model to which we are a view/controller
source code
 
_openConnection(self, info) source code
 
_openConnectionInternal(self, info) source code
 
_appendRecentConnections(self) source code
 
_quit(self)
Quitting the application in a controlled manner
source code
 
_close(self, *args) source code
 
_dumpConfig(self, configation) source code
 
_error(self, message) source code
 
_setStatusbarText(self, text) source code
 
_clearLastStatusbarText(self) source code
 
_assistantFinshed(self, assistant, configuration) source code
 
_getComponentsBy(self, componentType)
Obtains the components according a given type.
source code
 
_getHTTPPorters(self)
Obtains the porters currently configured on the running flow.
source code
 
_setMountPoints(self, wizard)
Sets the mount points currently used on the flow so they can not be used for others servers or streamers.
source code
 
_createComponentsByAssistantType(self, componentClass, entries) source code
 
_runAddNew(self, addition) source code
 
_runConfigurationAssistant(self) source code
 
_runAssistant(self, assistant) source code
 
_clearAdmin(self) source code
 
_updateUIStatus(self, connected) source code
 
_updateConnectionActions(self) source code
 
_updateComponentActions(self) source code
 
_updateComponents(self) source code
 
_appendComponent(self, component) source code
 
_hasProducerComponent(self) source code
 
_clearMessages(self) source code
 
_setPlanetState(self, planetState) source code
 
_clearAllComponents(self) source code
 
_removeComponent(self, state) source code
 
_componentStop(self, state)
Returns: a twisted.internet.defer.Deferred
source code
 
_componentStart(self, state)
Returns: a twisted.internet.defer.Deferred
source code
 
_componentDelete(self, state)
Returns: a twisted.internet.defer.Deferred
source code
 
_getStatesFromState(self, state) source code
twisted.internet.defer.Deferred
_componentDo(self, state, methodName, action, doing, done)
Do something with a component and update the statusbar.
source code
 
_killSelectedComponents(self) source code
 
_componentSelectionChanged(self, states) source code
 
_componentShowPopupMenu(self, event_button, event_time) source code
 
_connectionOpened(self, admin) source code
 
_showConnectionLostDialog(self) source code
 
_connectionLost(self) source code
 
_openRecentConnection(self) source code
 
_openExistingConnection(self) source code
 
_importConfiguration(self) source code
 
_exportConfiguration(self) source code
 
_startShell(self) source code
 
_dumpConfiguration(self) source code
 
_setDebugMarker(self) source code
 
_about(self) source code
 
_showHelp(self) source code
 
_promptForShutdown(self) source code
 
_admin_connected_cb(self, admin) source code
 
_admin_disconnected_cb(self, admin) source code
 
_admin_update_cb(self, admin) source code
 
_on_uimanager__connect_proxy(self, uimgr, action, widget) source code
 
_on_uimanager__disconnect_proxy(self, uimgr, action, widget) source code
 
_on_menu_item__select(self, menuitem, tooltip) source code
 
_on_menu_item__deselect(self, menuitem) source code
 
_on_tool_button__enter(self, toolbutton, tooltip) source code
 
_on_tool_button__leave(self, toolbutton) source code
 
_assistant_finished_cb(self, assistant, configuration) source code
 
on_assistant_destroy(self, assistant) source code
 
_window_delete_event_cb(self, window, event) source code
 
_window_key_press_event_cb(self, window, event) source code
 
_trayicon_quit_cb(self, trayicon) source code
 
_recent_action_activate_cb(self, action, conn) source code
 
_components_show_popup_menu_cb(self, clist, event_button, event_time) source code
 
_components_selection_changed_cb(self, clist, state) source code
 
_components_start_stop_notify_cb(self, clist, pspec) source code
 
_debug_write_debug_marker_cb(self, action) source code
 
_connection_open_recent_cb(self, action) source code
 
_connection_open_existing_cb(self, action) source code
 
_connection_import_configuration_cb(self, action) source code
 
_connection_export_configuration_cb(self, action) source code
 
_connection_quit_cb(self, action) source code
 
_manage_start_component_cb(self, action) source code
 
_manage_stop_component_cb(self, action) source code
 
_manage_delete_component_cb(self, action) source code
 
_manage_start_all_cb(self, action) source code
 
_manage_stop_all_cb(self, action) source code
 
_manage_clear_all_cb(self, action) source code
 
_manage_add_format_cb(self, action) source code
 
_manage_add_streamer_cb(self, action) source code
 
_manage_run_assistant_cb(self, action) source code
 
_debug_enable_cb(self, action) source code
 
_debug_start_shell_cb(self, action) source code
 
_debug_dump_configuration_cb(self, action) source code
 
_help_contents_cb(self, action) source code
 
_help_about_cb(self, action) source code
 
_kill_component_cb(self, action) source code

Inherited from extern.log.log.Loggable: __providedBy__, __provides__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Inherited from kiwi.ui.views.BaseView: check_focus, get_focus_widget, get_glade_adaptor, hide, hide_and_quit, quit_if_last, set_title, set_transient_for, show_all

Inherited from kiwi.ui.views.BaseView (private): _attach_callbacks, _setup_keypress_handler

Inherited from kiwi.ui.views.SlaveView: add_proxy, attach_slave, check_and_notify_validity, connect_multiple, detach_slave, disconnect_autoconnected, enable_window_controls, focus_toplevel, focus_topmost, force_validation, get_sizegroups, get_slave, get_toplevel, get_topmost_widget, get_widget, handler_block, handler_unblock, on_attach, on_startup, register_validate_function, set_controller, show_and_loop

Inherited from kiwi.ui.views.SlaveView (private): _attach_groups, _check_reserved, _get_notebooks, _get_toplevel, _merge_sizegroup, _on_child__validation_changed, _on_notebook_slave__validation_changed

Inherited from kiwi.controllers.BaseController: get_parent, get_view, on_key_press, set_keyactions, set_parent, set_view, update_keyactions

Inherited from kiwi.controllers.BaseController (private): _get_all_methods

Class Variables [hide private]
  gladefile = 'admin.glade'
hash(x)
  toplevel_name = 'main_window'
hash(x)
  logCategory = 'adminwindow'
Implementors can provide a category to log their messages under.

Inherited from extern.log.log.Loggable: __implemented__

Inherited from kiwi.ui.views.SlaveView: controller, domain, toplevel, widgets

Inherited from kiwi.controllers.BaseController: view

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Creates a new GladeDelegate. The keyactions parameter is sent to kiwi.controllers.BaseController, the rest are sent to kiwi.ui.views.BaseView

Overrides: kiwi.controllers.BaseController.__init__
(inherited documentation)

show(self)

source code 

Show the view's window. If the parent argument is supplied and is a valid view, this view is set as a transient for the parent view.

Overrides: kiwi.ui.views.SlaveView.show
(inherited documentation)

setDebugEnabled(self, enabled)

source code 

Set if debug should be enabled for the admin client window

Parameters:
  • enable - if debug should be enabled

getWindow(self)

source code 

Get the gtk window for the admin interface.

Returns: gtk.Window
window

openConnection(self, info, managerSpawner=None)

source code 

Connects to a manager given a connection info.

Parameters:

_getComponentsBy(self, componentType)

source code 

Obtains the components according a given type.

Parameters:

_getHTTPPorters(self)

source code 

Obtains the porters currently configured on the running flow.

@rtype : list of flumotion.admin.assistant.models.Porter

_setMountPoints(self, wizard)

source code 

Sets the mount points currently used on the flow so they can not be used for others servers or streamers.

Parameters:

_componentStop(self, state)

source code 
Returns:
a twisted.internet.defer.Deferred

_componentStart(self, state)

source code 
Returns:
a twisted.internet.defer.Deferred

_componentDelete(self, state)

source code 
Returns:
a twisted.internet.defer.Deferred

_componentDo(self, state, methodName, action, doing, done)

source code 

Do something with a component and update the statusbar.

Parameters:
  • state (AdminComponentState or None) - componentState; if not specified, will use the currently selected component(s)
  • methodName (str) - name of the method to call
  • action (str) - string used to explain that to do
  • doing (str) - string used to explain that the action started
  • done (str) - string used to explain that the action was completed
Returns: twisted.internet.defer.Deferred
a deferred that will fire when the action is completed.