Package orm2 :: Package adapters :: Package gadfly :: Module datatypes :: Class Unicode
[hide private]
[frames] | no frames]

Class Unicode

source code

    object --+            
             |            
      property --+        
                 |        
datatypes.datatype --+    
                     |    
     datatypes.Unicode --+
                         |
                        Unicode

The gadfly adapter defines its own Unicode type, because gadfly can't work with binary strings encoded as literals. This class uses sql.dicect_literal to pass the encoded unicode string to gadfly using the cursor.execute() method's '?' syntax.

Nested Classes [hide private]
  python_class
unicode(string [, encoding[, errors]]) -> object
  sql_literal_class
This returns a %s as SQL code and the content you pass to the constructor to be quoted by the cursor's implementation rathern than by orm2.sql.

Instance Methods [hide private]

Inherited from datatypes.Unicode: __convert__, __set_from_result__

Inherited from datatypes.datatype: __delete__, __get__, __init__, __init_dbclass__, __select_after_insert__, __select_this_column__, __set__, __setattr__, add_widget, check_dbobj, data_attribute_name, isset, sql_literal, widget_specs

Inherited from property: __getattribute__, __new__

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


Class Variables [hide private]

Inherited from property: fdel, fget, fset


Properties [hide private]

Inherited from object: __class__