pyzzle :: DB :: Table :: Class Table
[hide private]
[frames] | no frames]

Type Table

source code

object --+    
         |    
      type --+
             |
            Table

A metaclass used to represent the tables of a database.

Intstances of a table class are stored in the rows attribute, indexed by their primary key. For instance, Slide.rows['foobar'] accesses the instance 'foobar' from the Slide class, which uses the Table metaclass.

Intstances can also be accessed like a dictionary (e.g. Slide['foobar']), or like attributes (e.g. Slide.foobar) - this comes in handy when scripting slides for a large scale video game.

Instance Methods [hide private]
 
__init__(cls, name, bases=(), attrs={})
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getattr__(cls, attr) source code
 
__getitem__(cls, key) source code
 
__contains__(cls, item) source code
 
__iter__(cls) source code

Inherited from type: __call__, __cmp__, __delattr__, __getattribute__, __hash__, __new__, __repr__, __setattr__, __subclasses__, mro

Inherited from object: __reduce__, __reduce_ex__, __str__

Properties [hide private]

Inherited from type: __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__init__(cls, name, bases=(), attrs={})
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)