Package orm2 :: Module relationships :: Class _2many
[hide private]
[frames] | no frames]

Class _2many

source code

    object --+            
             |            
      property --+        
                 |        
datatypes.datatype --+    
                     |    
          relationship --+
                         |
                        _2many
Known Subclasses:
many2many, one2many

Nested Classes [hide private]
  result

Instance Methods [hide private]
  __init_dbclass__(self, dbclass, attribute_name)
This methods gets called by dbobject's metaclass.
  __get__(self, dbobj, owner)
See the Python Language Reference, chapter 3.3.2.2 for details on how this works.
  __set__(self, dbobj, value)
Set the attribute managed by this datatype class on instance to value.

Inherited from relationship: __convert__, __init__, __select_after_insert__, __select_this_column__, __set_from_result__, isset, sql_literal

Inherited from datatypes.datatype: __delete__, __setattr__, add_widget, check_dbobj, data_attribute_name, widget_specs

Inherited from property: __getattribute__, __new__

Inherited from object: __delattr__, __hash__, __reduce__, __reduce_ex__, __repr__, __str__


Class Variables [hide private]

Inherited from datatypes.datatype: python_class, sql_literal_class

Inherited from property: fdel, fget, fset


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init_dbclass__(self, dbclass, attribute_name)

source code 
This methods gets called by dbobject's metaclass. It supplies the db property with info about the class it belongs to and its attribute name.
Overrides: datatypes.datatype.__init_dbclass__
(inherited documentation)

__get__(self, dbobj, owner)

source code 
See the Python Language Reference, chapter 3.3.2.2 for details on how this works. Be sure to be in a relaxed, ready-for-hard-figuring mood.
Overrides: datatypes.datatype.__get__
(inherited documentation)

__set__(self, dbobj, value)

source code 
Set the attribute managed by this datatype class on instance to value. This will be called by Python on attribute assignment. The __set_from_result__ method does the same thing for data retrieved from the RDBMS. See below.
Overrides: datatypes.datatype.__set__
(inherited documentation)