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.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

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

Class Variable Summary
tuple __implements__ = (<MetaInterface flumotion.twisted.flavo...
str admin = 'hello pychecker'
str gettext_domain = 'flumotion'
str logCategory: Implementors can provide a category to log their messages under.
str state = 'hello pychecker'
    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
Value:
'hello pychecker'                                                      

Class Variable Details

__implements__

Type:
tuple
Value:
(<MetaInterface flumotion.twisted.flavors.IStateListener>,)            

admin

Type:
str
Value:
'hello pychecker'                                                      

gettext_domain

Type:
str
Value:
'flumotion'                                                            

logCategory

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

state

Type:
str
Value:
'hello pychecker'                                                      

Generated by Epydoc 2.1 on Wed Sep 13 13:38:32 2006 http://epydoc.sf.net