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.
  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.

Class Variable Summary
tuple __implements__ = (<class 'flumotion.twisted.flavors.ISta...
str admin = 'hello pychecker'
str logCategory: Implementors can provide a category to log their messages under.
str state = 'hello pychecker'

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

__implements__

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

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 Tue Dec 20 15:33:10 2005 http://epydoc.sf.net