| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
type --+
|
BaseMeta
The Metaclass for Base
This allows for tracking all models defined using perry.Base as well as dynamic class level methods. Class methods are delegated to an instance of pyperry.relation.Relation if it knows how to handle them.
| Instance Methods | |||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Static Methods | |||
| a new object with type S, a subtype of T |
|
||
| Class Variables | |
defined_models =
|
|
| Properties | |
|
Inherited from Inherited from |
| Method Details |
Called any time a new Base class is created using this metaclass Models names are tracked in order to allow quick lookup of the model's class by its name.
|
Lookup class by the given name Returns all models that match the given name. To avoid ambiguous matches you can pass any section of the preceding namespace or a full absolute path name to the class. For example, to find the class foo.bar.Baz you could specify:
# Matches all models named 'Baz'
Base.resolve_name('Baz')
# Matches all models named 'Baz' in a 'bar' namespace
Base.resolve_name('bar.Baz')
# Or specify absolutely
Base.resolve_name('foo.bar.Baz')
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jun 30 17:41:50 2011 | http://epydoc.sourceforge.net |