Trees | Indices | Help |
|
---|
|
object --+ | _AESettingsManager
Manages the persistence of Python objects.
Has methods for loading and saving state under a given name in the profile under which SUE is running or the profile named when the manager is instantiated. Maintains an in-memory cache of some objects loaded from disk to ensure multiple calls to load return the same reference.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
AEState |
|
||
|
|||
|
|||
object |
|
||
string |
|
||
|
|||
|
|||
boolean |
|
||
|
|||
|
|||
Inherited from |
|
|||
list of string |
|
||
boolean |
|
|
|||
dictionary of string : AEState |
cache Cache of previously loaded state objects. |
||
string |
name Name of the profile |
||
string |
profile Path to the profile database |
|
|||
Inherited from |
|
|
Opens the shelved data on disk in the given profile. Called by AEMain at startup.
|
Loads a collection of AEOutput.Style objects from disk. The loaded styles are not stored in the cache as the singleton requirement does not hold for output device styles. As a result, the styles loaded here will not be automatically persisted when this object is destroyed. saveStyles should be invoked directly.
|
|
Loads an AEState object from disk. If cached isTrue , stores a copy of the state to be
returned in memory such that future calls to load return the same instance with the same state.
|
Saves the internal data of an AEState object to disk. Does not Pickle the state object directly, but rather calls its serialize method to get a simple dictionary. This is done to avoid the problems caused by trying to persist state objects in modules that have been reloaded at runtime. Also does not Pickle states that are not dirty according to AEState.isDirty.
|
Saves the given object under the given name in the profile used to initialize this manager. Pickles the given object without any further processing on the part of this manager.
|
Loads the object from the profile used to initialize the manager. Unpickles the object under the given name without any additional processing on the part of this mananger.
|
|
|
|
|
|
Copies this profile to another name on disk. This method overwrites the destination if it already exists.
|
|
To Do: RB: The link needs to be reset after the SUEConstants are moved. |
|
cacheCache of previously loaded state objects. Used to ensure all references returned by loadState point to the same state object. All objects in this cache are persisted to disk when the manager is closed.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Jun 30 13:05:57 2008 | http://epydoc.sourceforge.net |