Trees | Index | Help |
---|
Package flumotion :: Package admin :: Module admin :: Class AdminModel |
|
object
--+ |GObject
--+ |Loggable
--+ |Jellyable
--+ | | |Serializable
--+ | | |Referenceable
--+ | AdminModel
I live in the admin client. I am a data model for any admin view implementing a UI to communicate with one manager. I send signals when things happen. I only communicate names of objects to views, not actual objects.
Manager calls on us throughflumotion.manager.admin.AdminAvatar
Method Summary | |
---|---|
__init__(self,
username,
password)
| |
Add a view as a client to the model. | |
Call the given remote method on the manager-side AdminAvatar. | |
checkElements(self,
workerName,
elements)
| |
cleanComponents(self)
| |
twisted.internet.defer.Deferred
|
Call the the given method on the given component with the given args. |
get_components(self)
| |
Do everything needed to get the given bundled file. | |
getComponents(self)
| |
Do everything needed to set up the entry point for the given component and type, including transferring and setting up bundles. | |
getProperty(self,
component,
element,
property)
| |
getWorkerHeavenState(self)
| |
hasRemoteReference(self)
| |
loadConfiguration(self,
xml_string)
| |
reconnect(self)
| |
reload(self)
| |
twisted.internet.defer.Deferred
|
Tell the manager to reload code for a component. |
deferred |
Tell the manager to reload its code. |
remote_componentAdded(self,
component)
| |
remote_componentCall(self,
componentName,
methodName,
*args,
**kwargs)
| |
remote_componentRemoved(self,
component)
| |
| |
remote_initial(self,
components,
workerHeavenState)
| |
remote_log(self,
category,
type,
message)
| |
remote_shutdown(self)
| |
Remove a view as a client to the model. | |
setProperty(self,
component,
element,
property,
value)
| |
setRemoteReference(self,
remoteReference)
| |
stateAppend(self,
state,
key,
value)
| |
stateRemove(self,
state,
key,
value)
| |
stateSet(self,
state,
key,
value)
| |
twisted.internet.defer.Deferred
|
Call the the given method on the given worker with the given args. |
twisted.internet.defer.Deferred
|
Run the given function and args on the given worker. |
_accessDeniedErrback(self,
failure)
| |
_callRemoteErrback(self,
failure,
type,
name,
methodName)
| |
_connectionRefusedErrback(self,
failure)
| |
_defaultErrback(self,
failure)
| |
_loginCallback(self,
result,
password)
| |
_registerCachedPaths(self,
paths)
| |
_remoteDisconnected(self,
remoteReference)
| |
Inherited from Referenceable | |
(internal) | |
A remote message has been received. | |
Inherited from Serializable | |
Return an ID which uniquely represents this object for this process. | |
Inherited from Jellyable | |
| |
Inherited from Loggable | |
Log a debug message. | |
Log an error. | |
Log an informational message. | |
Log a log message. | |
Overridable log function. | |
Overridable object name function. | |
Log a warning. | |
Inherited from GObject | |
x.__cmp__(y) <==> cmp(x,y) | |
| |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
GType |
__gtype__ = <GType flumotion+admin+admin+AdminModel (163...
|
tuple |
__implements__ = (<class 'flumotion.common.interfaces.IA...
|
NoneType |
clientFactory = None |
str |
logCategory : Implementors can provide a category to log their messages under. |
NoneType |
remote = None |
dict |
_components = {}
|
NoneType |
_unbundler = None |
list |
_views = []
|
NoneType |
_workerHeavenState = None |
Inherited from Referenceable | |
NoneType |
perspective = None |
Inherited from GObject | |
str |
__gdoc__ = 'Object GObject\n\nSignals from GObject:\n n...
|
getset_descriptor |
__grefcount__ = <attribute '__grefcount__' of 'gobject.G...
|
Method Details |
---|
addView(self, view)Add a view as a client to the model. |
callRemote(self, methodName, *args, **kwargs)Call the given remote method on the manager-side AdminAvatar. |
componentCallRemote(self, componentName, methodName, *args, **kwargs)Call the the given method on the given component with the given args.
|
getBundledFile(self, bundledPath)Do everything needed to get the given bundled file. Returns: a deferred returning the absolute path to a local copy of the given file. |
getEntry(self, componentName, type)Do everything needed to set up the entry point for the given component and type, including transferring and setting up bundles. Caller is responsible for adding errbacks to the deferred. Returns: a deferred returning (entryPath, filename, methodName) |
reloadComponent(self, name)Tell the manager to reload code for a component.
|
reloadManager(self)Tell the manager to reload its code.
|
remote_componentStateChanged(self, component, state)
|
removeView(self, view)Remove a view as a client to the model. |
workerCallRemote(self, workerName, methodName, *args, **kwargs)Call the the given method on the given worker with the given args.
|
workerRun(self, workerName, function, *args, **kwargs)Run the given function and args on the given worker.
|
Class Variable Details |
---|
__gtype__
|
__implements__
|
clientFactory
|
logCategoryImplementors can provide a category to log their messages under.
|
remote
|
_components
|
_unbundler
|
_views
|
_workerHeavenState
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Jan 21 09:59:45 2005 | http://epydoc.sf.net |