This datatype will manage several columns of the same datatype that
follow a naming convention. It is maily indended for database tables that
store several versions of a string in several columns, as for example for
applications where you have more than one language.
Example:
|
__init__(self,
inside_datatype,
postfixes,
default_postfix=None,
title=None,
validators=(),
has_default=False)
The rest of the params just like datatype.
|
|
__init_dbclass__(self,
dbclass,
attribute_name)
This methods gets called by dbobject's metaclass.
|
|
inside_dbproperties(self)
Return a dict as { postfix: <datatype instance> }
|
|
__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.
|
|
__set_from_result__(self,
ds,
dbobj,
value)
|
|
isset(self,
dbobj)
|
|
sql_literal(self,
dbobj)
Return an SQL literal representing the data managed by this
property in dbobj.
|
|
__select_this_column__(self)
Indicate whether this column shall be included in SELECT
statements.
|
|
__select_after_insert__(self,
dbobj)
Indicate whether this column needs to be SELECTed after the dbobj
has been inserted to pick up information supplied by backend as by
SQL default values and auto increment columns.
|
|
Inherited from datatype:
__convert__,
__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__
|