Package flumotion :: Package component :: Package base :: Module baseadminnode :: Class BaseAdminGtkNode
[hide private]

Class BaseAdminGtkNode

source code

extern.log.log.Loggable --+
                          |
                         BaseAdminGtkNode
Known Subclasses:

I am a base class for all GTK+-based Admin UI nodes. I am a view on a set of properties for a component.

Instance Methods [hide private]
 
__init__(self, state, admin, title=None) source code
 
setDebugEnabled(self, enabled)
Set if debug should be enabled.
source code
 
cleanup(self) source code
 
status_push(self, str) source code
 
status_pop(self, mid) source code
 
callRemote(self, methodName, *args, **kwargs) source code
 
loadGladeFile(self, gladeFile, domain='flumotion')
Returns: a deferred returning the widget tree from the glade file.
source code
 
getWidget(self, name) source code
 
createWidget(self, name)
Create a new widget instance from the glade file.
source code
 
haveWidgetTree(self)
I am called when the widget tree has been gotten from the glade file.
source code
 
gotUIState(self, state) source code
 
setUIState(self, state)
Called by the BaseAdminGtk when it gets the UI state and the GUI is ready.
source code
 
stateSet(self, state, key, value)
Override me
source code
 
stateAppend(self, state, key, value)
Override me
source code
 
stateRemove(self, state, key, value)
Override me
source code
 
stateSetitem(self, state, key, subkey, value)
Override me
source code
 
stateDelitem(self, state, key, subkey, value)
Override me
source code
 
render(self)
Render the GTK+ admin view for this component.
source code
 
addMessage(self, message)
Add a message to the component.
source code

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

Class Variables [hide private]
  logCategory = 'admingtk'
Implementors can provide a category to log their messages under.
  gladeFile = None
  gettextDomain = 'flumotion'
  __implemented__ = <implementedBy flumotion.component.base.base...
  __provides__ = <zope.interface.declarations.ClassProvides obje...
Instance Variables [hide private]
gtk.Widget widget
the main widget representing this node
  wtree
the widget tree representation for this node
Method Details [hide private]

__init__(self, state, admin, title=None)
(Constructor)

source code 
Parameters:

setDebugEnabled(self, enabled)

source code 

Set if debug should be enabled. Not all pages are visible unless debugging is set to true

Parameters:
  • enabled (bool) - whether debug should be enabled

createWidget(self, name)

source code 

Create a new widget instance from the glade file. Can be used to make multiple instances of the same widget.

haveWidgetTree(self)

source code 

I am called when the widget tree has been gotten from the glade file. Responsible for setting self.widget.

Override me to act on it.

setUIState(self, state)

source code 

Called by the BaseAdminGtk when it gets the UI state and the GUI is ready. Chain up if you provide your own implementation.

render(self)

source code 

Render the GTK+ admin view for this component.

Returns: a deferred returning the main widget for embedding

addMessage(self, message)

source code 

Add a message to the component. Since this is called in a component view and only relevant to the component view, the message only exists in the view, and is not replicated to the manager state.

The message will be displayed in the usual message view.

Parameters:

Class Variable Details [hide private]

__implemented__

Value:
<implementedBy flumotion.component.base.baseadminnode.BaseAdminGtkNode\
>

__provides__

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