Package flumotion :: Package admin :: Package gtk :: Module componentlist :: Class ComponentList
[hide private]

Class ComponentList

source code

extern.log.log.Loggable --+
                          |
             object --+   |
                      |   |
             ??.GObject --+
                          |
                         ComponentList

I present a view on the list of components logged in to the manager.

Instance Methods [hide private]
 
__init__(self, treeView)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_createUI(self, treeView) source code
list of str or None
getSelectedNames(self)
Get the names of the currently selected components, or None if none are selected.
source code
list of flumotion.common.component.AdminComponentState or None
getSelectedStates(self)
Get the states of the currently selected components, or None if none are selected.
source code
list of str
getComponentNames(self)
Fetches a list of all component names.
source code
list of AdminComponentState
getComponentStates(self)
Fetches a list of all component states
source code
bool
canDelete(self)
Get whether the selected components can be deleted.
source code
bool
canStart(self)
Get whether the selected components can be started.
source code
bool
canStop(self)
Get whether the selected components can be stopped.
source code
 
clearAndRebuild(self, components, componentNameToSelect=None)
Update the components view by removing all old components and showing the new ones.
source code
 
appendComponent(self, component, componentNameToSelect) source code
 
removeComponent(self, component) source code
 
stateSet(self, state, key, value) source code
 
_setMsgLevel(self, titer, messages) source code
 
_updateStartStop(self) source code
 
workerAppend(self, name) source code
 
workerRemove(self, name) source code
 
_updateWorker(self, titer, componentState) source code
 
_removeListenerForeach(self, model, path, titer) source code
 
_setMoodValue(self, titer, value)
Set the mood value on the given component name.
source code
 
_getSelected(self, col_name) source code
 
_getMoodPixbufs(self) source code
 
_selectionChanged(self) source code
 
_showPopupMenu(self, event) source code
 
_view_cursor_changed_cb(self, *args) source code
 
_view_button_press_event_cb(self, treeview, event) source code
 
__provides__(...)
Special descriptor for class __provides__
 
do_get_property(self, prop) source code
 
do_set_property(self, prop, value) source code

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

Inherited from unreachable.GObject: __copy__, __deepcopy__, __delattr__, __eq__, __gdoc__, __ge__, __gobject_init__, __gt__, __hash__, __le__, __lt__, __ne__, __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, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __format__, __getattribute__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  logCategory = 'components'
Implementors can provide a category to log their messages under.
  __gtype__ = <GType flumotion+admin+gtk+componentlist+Component...
  __implemented__ = <implementedBy flumotion.admin.gtk.component...
Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, treeView)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • treeView - the gtk.TreeView to put the view in.
Overrides: object.__init__

getComponentNames(self)

source code 

Fetches a list of all component names.

Returns: list of str
component names

getComponentStates(self)

source code 

Fetches a list of all component states

Returns: list of AdminComponentState
component states

canDelete(self)

source code 

Get whether the selected components can be deleted.

Returns True if all components are sleeping.

Also returns False if no components are selected.

Returns: bool

canStart(self)

source code 

Get whether the selected components can be started.

Returns True if all components are sleeping and their worked has logged in.

Also returns False if no components are selected.

Returns: bool

canStop(self)

source code 

Get whether the selected components can be stopped.

Returns True if none of the components are sleeping.

Also returns False if no components are selected.

Returns: bool

clearAndRebuild(self, components, componentNameToSelect=None)

source code 

Update the components view by removing all old components and showing the new ones.

Parameters:

_setMoodValue(self, titer, value)

source code 

Set the mood value on the given component name.

Parameters:
  • value (int)

__provides__(...)

 
Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

Overrides: extern.log.log.Loggable.__provides__

Class Variable Details [hide private]

__gtype__

Value:
<GType flumotion+admin+gtk+componentlist+ComponentList (292608368)>

__implemented__

Value:
<implementedBy flumotion.admin.gtk.componentlist.ComponentList>