Home | Trees | Index | Help |
---|
Package twisted :: Package persisted :: Package journal :: Module base |
|
Classes | |
---|---|
Journal |
All commands to the system get routed through here. |
LoadingService |
Base class for journalled service used with Wrappables. |
MemoryJournal |
Prevayler-like journal that dumps from memory to disk. |
ServiceWrapperCommand |
|
Wrappable |
Base class for objects used with LoadingService. |
WrapperCommand |
Function Summary | |
---|---|
Wrap a method so it gets turned into command automatically. | |
Wrap methods into commands for a journalled service. |
Variable Summary | |
---|---|
MetaInterface |
ICommand
|
MetaInterface |
ICommandLog
|
MetaInterface |
Interface
|
_Feature |
nested_scopes
|
Function Details |
---|
command(methodName, cmdClass=<class twisted.persisted.journal.base.WrapperComm...)Wrap a method so it gets turned into command automatically. For use with Wrappables. Usage:| class Foo(Wrappable): | objectType = "foo" | def getUid(self): | return self.id | def _bar(self, x): | return x + 1 | | bar = command('_bar')The resulting callable will have signature identical to wrapped function, except that it expects journal as first argument, and returns a Deferred. |
serviceCommand(methodName, cmdClass=<class twisted.persisted.journal.base.ServiceWrap...)Wrap methods into commands for a journalled service. The resulting callable will have signature identical to wrapped function, except that it expects journal as first argument, and returns a Deferred. |
Variable Details |
---|
ICommand
|
ICommandLog
|
Interface
|
nested_scopes
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Thu May 8 13:16:34 2003 | http://epydoc.sf.net |