Home | Trees | Indices | Help |
|
---|
|
object --+ | property --+ | datatypes.datatype --+ | relationship --+ | _2many --+ | many2many
The many to many relationship manages rows from two tables which are linked by means of a third table, the link_relation. This tables stores keys from each of the tables that are to be linked. Note that these keys must be single column keys.
If you set a many2many property to a list of child objects or append one it will be inserted into the databse if need be.
The result class implements a subset of the list interface, but the lists elements are considered to have no guaranteed order (as the values in a dict have no order).
|
|||
|
result Instances of this class are returned if you __get__ a many2many dbproperty. |
|
|||
| __init__(self, child_class, link_relation, parent_own_key=None, parent_link_column=None, child_own_key=None, child_link_column=None, title=None) | ||
|
__set__(self,
dbobj,
value) Set the attribute managed by this datatype class on instance to value. |
||
| parent_own_key(self, dbobj) | ||
| parent_link_column(self, dbobj) | ||
| child_own_key(self) | ||
| child_link_column(self) | ||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
|
reverse(cls,
original_dbclass,
attribute_name,
title=None) Constructor. |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
Constructor. A little helper function: If you've defined one many2many relation, this constructor will take it as an argument and return the complimentary one to be an attribute in the child class.
|
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Wed Feb 20 18:17:27 2008 | http://epydoc.sourceforge.net |