Module metakitplus :: Class storage
[show private | hide private]
[frames | no frames]

Class storage


Convenience wrapper for metakit 'storage' class
Method Summary
  __init__(self, *args, **kw)
Creates a metakit-plus 'storage' class, which wraps metakit's storage objects.
  __getattr__(self, attr)
  __getitem__(self, item)
Allows tables to be retrieved with dbobj['tablename']
  contents(self, *args, **kw)
You can use the keyword arg 'viewclass=myNewViewClass' to 'cast' the created/modified view into a separate view class.
  dump(self)
  getas(self, *args, **kw)
You can use the keyword arg 'viewclass=myNewViewClass' to 'cast' the created/modified view into a separate view class.
  listViews(self)
  view(self, *args, **kw)
You can use the keyword arg 'viewclass=myNewViewClass' to 'cast' the created/modified view into a separate view class.

Method Details

__init__(self, *args, **kw)
(Constructor)

Creates a metakit-plus 'storage' class, which wraps metakit's storage objects.

If you want to subclass Metakit Plus's 'view' class, you'll have to invoke this constructor with the keyword arg "viewclass=myNewViewClass". Once you've done this, you'll find that all views derived from your storage object will be in your own view class, as will be any views you derive from these views.

If you don't specify a view class in this way, the view class used for creating views from this storage object will be the 'view' class in this module.

__getitem__(self, item)
(Indexing operator)

Allows tables to be retrieved with dbobj['tablename']

contents(self, *args, **kw)

You can use the keyword arg 'viewclass=myNewViewClass' to 'cast' the created/modified view into a separate view class. If you don't do this, the view class will be the one with which the storage object was created.

getas(self, *args, **kw)

You can use the keyword arg 'viewclass=myNewViewClass' to 'cast' the created/modified view into a separate view class. If you don't do this, the view class will be the one with which the storage object was created.

view(self, *args, **kw)

You can use the keyword arg 'viewclass=myNewViewClass' to 'cast' the created/modified view into a separate view class. If you don't do this, the view class will be the one with which the storage object was created.

Generated by Epydoc 1.1 on Fri Jul 25 19:27:27 2003 http://epydoc.sf.net