Home | Trees | Index | Help |
|
---|
Package twisted :: Package persisted :: Package journal :: Module base |
|
Classes | |
---|---|
ICommand |
A serializable command which interacts with a journaled service. |
ICommandLog |
Interface for command log. |
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. |
Function Details |
---|
command(methodName, cmdClass=<class twisted.persisted.journal.base.WrapperCommand at 0...)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.ServiceWrapperComma...)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. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:06 2004 | http://epydoc.sf.net |