Package flumotion :: Package component :: Package base :: Module admin_gtk :: Class BaseAdminGtk
[show private | hide private]
[frames | no frames]

Class BaseAdminGtk

Loggable --+
           |
          BaseAdminGtk


I am a base class for all GTK+-based Admin views. I am a view on one component's properties.
Method Summary
  __init__(self, state, admin)
  callRemote(self, methodName, *args, **kwargs)
  getElementProperty(self, elementName, propertyName)
Get the value of the given property of the element with the given name.
  getNodes(self)
Return a dict of admin UI nodes.
  propertyChanged(self, name, value)
Override this method to be notified of component's properties that have changed.
  propertyErrback(self, failure, window)
  render(self)
Render the GTK+ admin view for this component and return the main widget for embedding.
  setElementProperty(self, elementName, propertyName, value)
Set the given property on the element with the given name.
  setUIState(self, state)
  setup(self, *args, **kwargs)
  stateAppend(self, object, key, value)
  stateRemove(self, object, key, value)
  stateSet(self, object, key, value)
  uiStateChanged(self, stateObject)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.

Instance Variable Summary
twisted.python.util.OrderedDict nodes: an ordered dict of name -> BaseAdminGtkNode

Class Variable Summary
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Loggable
Implements __implemented__ = <implementedBy flumotion.common.log.Lo...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

__init__(self, state, admin)
(Constructor)

Parameters:
state - state of component this is a UI for
           (type=flumotion.common.planet.AdminComponentState)
admin - the admin model that interfaces with the manager for us
           (type=flumotion.admin.admin.AdminModel)

getElementProperty(self, elementName, propertyName)

Get the value of the given property of the element with the given name.

Returns: twisted.internet.defer.Deferred returning the value.

getNodes(self)

Return a dict of admin UI nodes.

propertyChanged(self, name, value)

Override this method to be notified of component's properties that have changed.

I am meant to be overridden.

render(self)

Render the GTK+ admin view for this component and return the main widget for embedding.

setElementProperty(self, elementName, propertyName, value)

Set the given property on the element with the given name.

Instance Variable Details

nodes

an ordered dict of name -> BaseAdminGtkNode
Type:
twisted.python.util.OrderedDict

Class Variable Details

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'admingtk'                                                             

Generated by Epydoc 2.1 on Fri Apr 6 10:10:24 2007 http://epydoc.sf.net