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

Class AdminWindow

source code

            extern.log.log.Loggable --+
                                      |
             object --+               |
                      |               |
        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)
Connects to a manager given a connection info
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
 
_fatalError(self, message, tray=None) source code
 
_setStatusbarText(self, text) source code
 
_clearLastStatusbarText(self) source code
 
_wizardFinshed(self, wizard, configuration) source code
 
_getComponentBy(self, componentType) source code
 
_getHTTPPorter(self) source code
 
_createComponentsByWizardType(self, componentClass, entries) source code
 
_runAddNewFormatWizard(self) source code
 
_runConfigurationWizard(self) source code
 
_runWizard(self, wizard) source code
 
_clearAdmin(self) source code
 
_updateConnectionActions(self) source code
 
_updateComponentActions(self) source code
 
_updateComponents(self) 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
 
_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
 
_connectionRefused(self) source code
 
_connectionFailed(self, reason) 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
 
_admin_connected_cb(self, admin) source code
 
_admin_disconnected_cb(self, admin) source code
 
_admin_connection_refused_cb(self, admin) source code
 
_admin_connection_failed_cb(self, admin, reason) 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
 
_wizard_finished_cb(self, wizard, configuration) source code
 
_window_delete_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_run_wizard_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_about_cb(self, action) source code
 
_kill_component_cb(self, action) source code

Inherited from extern.log.log.Loggable: __providedBy__, 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, 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 gobject.GObject: __cmp__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

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'
  toplevel_name = 'main_window'
  logCategory = 'adminwindow'
Implementors can provide a category to log their messages under.
  __gtype__ = <GType flumotion+admin+gtk+adminwindow+AdminWindow...
  __implemented__ = <implementedBy flumotion.admin.gtk.adminwind...
  __provides__ = <zope.interface.declarations.ClassProvides obje...

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

Inherited from kiwi.controllers.BaseController: view

Properties [hide private]

Inherited from gobject.GObject: __grefcount__

Inherited from object: __class__

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)

source code 

Connects to a manager given a connection info

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) - componentState
  • 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

Class Variable Details [hide private]

__gtype__

Value:
<GType flumotion+admin+gtk+adminwindow+AdminWindow (150235560)>

__implemented__

Value:
<implementedBy flumotion.admin.gtk.adminwindow.AdminWindow>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x8f7afec>