Package flumotion :: Package component :: Package base :: Module admin_text :: Class BaseAdminText
[show private | hide private]
[frames | no frames]

Class BaseAdminText

Loggable --+
           |
          BaseAdminText


I am a base class for all Text-based Admin views. I am a view on one component's properties.
Method Summary
  __init__(self, state, admin)
  callRemote(self, methodName, *args, **kwargs)
  getCompletions(self, input)
  getElementProperty(self, elementName, propertyName)
Get the value of the given property of the element with the given name.
  propertyChanged(self, name, value)
Override this method to be notified of component's properties that have changed.
  propertyErrback(self, failure, window)
  runCommand(self, command)
  setElementProperty(self, elementName, propertyName, value)
Set the given property on the element with the given name.
  setup(self)
Set up the admin view so it can display nodes.
  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.

Class Variable Summary
Implements __implemented__ = <implementedBy flumotion.component.bas...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
str admin = 'hello pychecker'
str logCategory: Implementors can provide a category to log their messages under.
str state = 'hello pychecker'
    Inherited from Loggable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

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.

propertyChanged(self, name, value)

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

I am meant to be overridden.

setElementProperty(self, elementName, propertyName, value)

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

setup(self)

Set up the admin view so it can display nodes.

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy flumotion.component.base.admin_text.BaseAdminText>      

__provides__

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

admin

Type:
str
Value:
'hello pychecker'                                                      

logCategory

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

state

Type:
str
Value:
'hello pychecker'                                                      

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