Package orm2 :: Module datatypes :: Class wrapper
[hide private]
[frames] | no frames]

Class wrapper

source code

object --+        
         |        
  property --+    
             |    
      datatype --+
                 |
                wrapper
Known Subclasses:
delayed, expression

This is the base class for those datatype that are 'wrappers' for regular datatypes. This class will forward all attribute access to the inner datatype, including method calls. Except for those methods and attributes it contains itself.

All classes derived from wrapper must overload the __copy__ method for dbclass inheritance to work properly.

Instance Methods [hide private]
  __init__(self, inside_datatype)
  __getattribute__(self, name)
x.__getattribute__('name') <==> x.name
  __eq__(self, other)
This will let the in in datatype.check_dbobj yield True.
  __copy__(self)
  widget_specs(self)

Inherited from datatype: __convert__, __delete__, __get__, __init_dbclass__, __select_after_insert__, __select_this_column__, __set__, __set_from_result__, __setattr__, add_widget, check_dbobj, data_attribute_name, isset, sql_literal

Inherited from property: __new__

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


Class Variables [hide private]

Inherited from 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, inside_datatype)
(Constructor)

source code 
Overrides: datatype.__init__
(inherited documentation)

__getattribute__(self, name)

source code 
x.__getattribute__('name') <==> x.name
Overrides: property.__getattribute__
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 
This will let the in in datatype.check_dbobj yield True.

__copy__(self)

source code 
None

widget_specs(self)

source code 
None
Overrides: datatype.widget_specs