Package gluon :: Module storage
[hide private]
[frames] | no frames]

Module storage

source code


This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)

Provides:

- List; like list but returns None instead of IndexOutOfBounds
- Storage; like dictionary allowing also for `obj.foo` for `obj['foo']`

Classes [hide private]
  Storage
A Storage object is like a dictionary except `obj.foo` can be used in addition to `obj['foo']`, and setting obj.foo = None deletes item foo.
  StorageList
like Storage but missing elements default to [] instead of None
  Settings
  Messages
  FastStorage
Eventually this should replace class Storage but causes memory leak because of http://bugs.python.org/issue1469629
  List
Like a regular python list but a[i] if i is out of bounds return None instead of IndexOutOfBounds
Functions [hide private]
 
DEFAULT() source code
 
load_storage(filename) source code
 
save_storage(storage, filename) source code
Variables [hide private]
  PICKABLE = (<type 'str'>, <type 'int'>, <type 'long'>, <type '...
  __package__ = 'gluon'
Variables Details [hide private]

PICKABLE

Value:
(<type 'str'>,
 <type 'int'>,
 <type 'long'>,
 <type 'float'>,
 <type 'bool'>,
 <type 'list'>,
 <type 'dict'>,
 <type 'tuple'>,
...