| Home | Trees | Indices | Help |
|
|---|
|
|
Uses Python's shelve to store the state of the Routers to disk rather than in memory like with MemoryStorage. This will get you going on a small install if you need to persist your states (most likely), but if you have a database, you'll need to write your own StateStorage that uses your ORM or database to store. Consider this an example.
NOTE: Because of shelve limitations you can only use ASCII encoded keys.
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Database path depends on the backing library use by Python's shelve.
|
This will lock the internal thread lock, and then retrieve from the shelf whatever key you request. If the key is not found then it will set (atomically) to ROUTE_FIRST_STATE.
|
Acquires the self.lock and then sets the requested state in the shelf.
|
Primarily used in the debugging/unit testing process to make sure the states are clear. In production this could be a bad thing.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 7 07:32:52 2010 | http://epydoc.sourceforge.net |