| 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. | |
| Variable Summary | |
|---|---|
_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 |
|---|
nested_scopes
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 1.1 on Fri Jun 27 03:48:23 2003 | http://epydoc.sf.net |