Package web2py :: 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]
  List
Like a regular python list but a[i] if i is out of bounds return None instead of IndexOutOfBounds
  Storage
A Storage object is like a dictionary except `obj.foo` can be used in addition to `obj['foo']`.
  StorageList
like Storage but missing elements default to [] instead of None
  Settings
  Messages
Functions [hide private]
 
load_storage(filename) source code
 
save_storage(storage, filename) source code