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

Class varchar

source code

object --+            
         |            
  property --+        
             |        
      datatype --+    
                 |    
            string --+
                     |
                    varchar

dbclass property for string values with a fixed (maximum-)length. This is the string class above with a length_validator added.

Nested Classes [hide private]

Inherited from string: python_class, sql_literal_class


Instance Methods [hide private]
  __init__(self, max_length, column=None, title=None, validators=(), has_default=False)

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


Method Details [hide private]

__init__(self, max_length, column=None, title=None, validators=(), has_default=False)
(Constructor)

source code 
Overrides: datatype.__init__
(inherited documentation)