| Home | Trees | Index | Help |
|
|---|
| Package bazaar :: Module conf :: Class Persistence |
|
object--+ |type--+ | Persistence
Application class metaclass.
Programmer defines application classes with the metaclass. The class is assigned to the database relation. Class name is used as relation name, by default.| Method Summary | |
|---|---|
Create application class. (Static method) | |
Add attribute description to persistent application class. | |
Return list of all defined columns including inherited. | |
| Inherited from type | |
x.__call__(...) <==> x(...) | |
x.__cmp__(y) <==> cmp(x,y) | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
| list of immediate subclasses |
__subclasses__() -> list of immediate subclasses |
| list |
return a type's method resolution order |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
helper for pickle | |
helper for pickle | |
x.__str__() <==> str(x) | |
| Instance Variable Summary | |
|---|---|
cache: Object cache class. | |
columns: List of application class attribute descriptions. | |
defaults: Default values for class attributes. | |
relation: Database relation name. | |
sequencer: Name of primary key values generator sequencer. | |
| Class Variable Summary | |
|---|---|
| Inherited from type | |
tuple |
__bases__ = (<type 'object'>,)
|
int |
__basicsize__ = 420 |
int |
__dictoffset__ = 132 |
int |
__flags__ = 21995 |
int |
__itemsize__ = 20 |
tuple |
__mro__ = (<type 'type'>, <type 'object'>)
|
str |
__name__ = 'type'
|
int |
__weakrefoffset__ = 184 |
| Instance Method Details |
|---|
addColumn(self, attr, col=None, vcls=None, link=None, vcol=None, vattr=None, update=True)Add attribute description to persistent application class. This way the application class attributes and relationships between application classes are defined.
|
getColumns(self)Return list of all defined columns including inherited. |
| Static Method Details |
|---|
__new__(self, name, bases=(<class 'bazaar.core.PersistentObject'>,), data=None, relation=None, sequencer=None, modname='bazaar.conf')Create application class.
|
| Instance Variable Details |
|---|
cacheObject cache class. |
columnsList of application class attribute descriptions. |
defaultsDefault values for class attributes. |
relationDatabase relation name. |
sequencerName of primary key values generator sequencer. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sun May 23 19:11:17 2004 | http://epydoc.sf.net |