lib.scripting.Store

Package lib :: Module scripting :: Class Store |
[hide private]
[frames] | no frames]

# Class Store

source code

    object --+
             |
          dict --+
                 |
                Store

Allows persistent storage of values between invocations of the script.

Instance Methods | [hide private]
set_value(self, key, value) Store a value | source code
get_value(self, key) Get a value | source code
remove_value(self, key) Remove a value | source code
set_global_value(self, key, value) Store a global value | source code
get_global_value(self, key) Get a global value | source code
remove_global_value(self, key) Remove a global value | source code
Inherited from `dict`: `__cmp__`, `__contains__`, `__delitem__`, `__eq__`, `__ge__`, `__getattribute__`, `__getitem__`, `__gt__`, `__init__`, `__iter__`, `__le__`, `__len__`, `__lt__`, `__ne__`, `__new__`, `__repr__`, `__setitem__`, `__sizeof__`, `clear`, `copy`, `fromkeys`, `get`, `has_key`, `items`, `iteritems`, `iterkeys`, `itervalues`, `keys`, `pop`, `popitem`, `setdefault`, `update`, `values`, `viewitems`, `viewkeys`, `viewvalues` Inherited from `object`: `__delattr__`, `__format__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
Inherited from `dict`: `__hash__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### set_value(self, key, value) | source code
Store a value Usage: `store.set_value(key, value)`

### get_value(self, key) | source code
Get a value Usage: `store.get_value(key)`

### remove_value(self, key) | source code
Remove a value Usage: `store.remove_value(key)`

### set_global_value(self, key, value) | source code
Store a global value Usage: `store.set_global_value(key, value)` The value stored with this method will be available to all scripts.

### get_global_value(self, key) | source code
Get a global value Usage: `store.get_global_value(key)`

### remove_global_value(self, key) | source code
Remove a global value Usage: `store.remove_global_value(key)`