Module Expr Str ImportFrom alias Import alias alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareLt NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign TupleStore AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str handlers ExceptHandler type TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr NameStore TupleLoad Num NameLoad Expr Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list FunctionDef arguments args defaults body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases body Expr Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Dict body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Return Call Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list ClassDef bases body Expr Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults TupleLoad Dict body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad Str body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Num decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list
N/A N/A Basic classes and interfaces for journal. __future__ nested_scopes N/A os time N/A N/A N/A cPickle pickle N/A N/A N/A ImportError N/A N/A pickle zope.interface implements Interface Journal N/A N/A N/A All commands to the system get routed through here.

    Subclasses should implement the actual snapshotting capability.
     __init__ N/A N/A self log journaledService N/A N/A N/A N/A self log log N/A N/A self journaledService journaledService N/A N/A self latestIndex N/A N/A N/A self log getCurrentIndex N/A updateFromLog N/A N/A self N/A N/A N/A Run all commands from log that haven't been run yet.

        This method should be run on startup to ensure the snapshot
        is up-to-date.
         N/A snapshotIndex N/A N/A self getLastSnapshot N/A N/A snapshotIndex N/A self latestIndex N/A N/A N/A cmdtime command N/A N/A N/A self log getCommandsSince N/A snapshotIndex 1 N/A N/A N/A N/A command execute N/A self journaledService cmdtime N/A executeCommand N/A N/A self command N/A N/A N/A Log and execute a command. N/A runTime N/A N/A time time N/A d N/A N/A N/A self log logCommand command runTime N/A N/A N/A d addCallback N/A self _reallyExecute command runTime N/A d N/A _reallyExecute N/A N/A self index command runTime N/A N/A N/A Callback called when logging command is done. N/A result N/A N/A command execute N/A self journaledService runTime N/A N/A self latestIndex index N/A result N/A getLastSnapshot N/A N/A self N/A N/A N/A Return command index of the last snapshot taken. N/A NotImplementedError N/A sync N/A N/A self N/A args kwargs N/A N/A Save journal to disk, returns Deferred of finish status.

        Subclasses may choose whatever signature is appropriate, or may
        not implement this at all.
         N/A NotImplementedError N/A N/A MemoryJournal N/A Journal N/A N/A Prevayler-like journal that dumps from memory to disk. __init__ N/A N/A self log journaledService path loadedCallback N/A N/A N/A N/A self path path N/A N/A N/A N/A os path exists path N/A N/A N/A N/A N/A N/A self lastSync obj N/A N/A pickle load N/A open path rb N/A N/A N/A N/A IOError OSError N/A pickle UnpicklingError N/A N/A N/A N/A self lastSync obj N/A 0 None N/A N/A loadedCallback obj N/A N/A N/A self lastSync 0 N/A N/A loadedCallback None N/A N/A N/A Journal __init__ self log journaledService N/A getLastSnapshot N/A N/A self N/A N/A N/A N/A self lastSync N/A sync N/A N/A self obj N/A N/A N/A f N/A open N/A self path wb N/A N/A N/A pickle dump N/A N/A self latestIndex obj f 1 N/A N/A N/A f close N/A N/A self lastSync N/A self latestIndex N/A N/A ICommand N/A Interface N/A N/A A serializable command which interacts with a journaled service. execute N/A N/A journaledService runTime N/A N/A N/A Run the command and return result. N/A N/A ICommandLog N/A Interface N/A N/A Interface for command log. logCommand N/A N/A command runTime N/A N/A N/A Add a command and its run time to the log.

        @return: Deferred of command index.
         N/A getCurrentIndex N/A N/A N/A N/A N/A Return index of last command that was logged. N/A getCommandsSince N/A N/A index N/A N/A N/A Return commands who's index >= the given one.

        @return: list of (time, command) tuples, sorted with ascending times.
         N/A N/A LoadingService N/A N/A N/A Base class for journalled service used with Wrappables. loadObject N/A N/A self objType objId N/A N/A N/A Return object of specified type and id. N/A NotImplementedError N/A N/A Wrappable N/A N/A N/A Base class for objects used with LoadingService. N/A objectType None getUid N/A N/A self N/A N/A N/A Return uid for loading with LoadingService.loadObject N/A NotImplementedError N/A N/A WrapperCommand N/A N/A N/A N/A implements ICommand __init__ N/A N/A self methodName obj args kwargs N/A N/A N/A N/A N/A N/A self obj obj N/A N/A self objId N/A N/A obj getUid N/A N/A self objType N/A obj objectType N/A N/A self methodName methodName N/A N/A self args args N/A N/A self kwargs kwargs N/A execute N/A N/A self svc commandTime N/A N/A N/A N/A N/A hasattr self obj N/A N/A obj N/A N/A svc loadObject N/A self objType N/A self objId N/A N/A obj N/A self obj N/A N/A N/A getattr obj N/A self methodName N/A self args N/A self kwargs N/A __getstate__ N/A N/A self N/A N/A N/A d N/A N/A N/A self __dict__ copy N/A N/A d N/A obj N/A d N/A N/A command N/A N/A methodName cmdClass N/A WrapperCommand N/A N/A 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.
     wrapper N/A N/A obj journal N/A args kwargs N/A N/A N/A N/A journal executeCommand N/A cmdClass methodName obj args kwargs N/A N/A wrapper N/A ServiceWrapperCommand N/A N/A N/A N/A implements ICommand __init__ N/A N/A self methodName args kwargs N/A N/A N/A N/A N/A N/A self methodName methodName N/A N/A self args args N/A N/A self kwargs kwargs N/A execute N/A N/A self svc commandTime N/A N/A N/A N/A N/A getattr svc N/A self methodName N/A self args N/A self kwargs N/A __repr__ N/A N/A self N/A N/A N/A N/A <ServiceWrapperCommand: %s, %s, %s> N/A N/A self methodName N/A self args N/A self kwargs N/A __cmp__ N/A N/A self other N/A N/A N/A N/A hasattr other __dict__ N/A N/A N/A cmp N/A self __dict__ N/A other __dict__ N/A N/A 0 N/A N/A serviceCommand N/A N/A methodName cmdClass N/A ServiceWrapperCommand N/A N/A 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.
     wrapper N/A N/A obj journal N/A args kwargs N/A N/A N/A N/A journal executeCommand N/A cmdClass methodName args kwargs N/A N/A wrapper N/A