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

Class one2one

source code

    object --+            
             |            
      property --+        
                 |        
datatypes.datatype --+    
                     |    
          relationship --+
                         |
                        one2one

Instance Methods [hide private]
  __init__(self, child_class, child_key=None, foreign_key=None, title=None, has_default=None)
  __set__(self, dbobj, value)
Set the attribute managed by this datatype class on instance to value.
  __get__(self, dbobj, owner)
See the Python Language Reference, chapter 3.3.2.2 for details on how this works.

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

Inherited from datatypes.datatype: __delete__, __init_dbclass__, __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__(self, child_class, child_key=None, foreign_key=None, title=None, has_default=None)
(Constructor)

source code 
Overrides: relationship.__init__
(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)

__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)