Package Camelot :: Package camelot :: Package view :: Module field_attributes
[frames] | no frames]

Module field_attributes

source code

Field types handled through introspection :

+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| **Field type**     | **Default delegate**                                                 | **Default editor**                                                   |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| BOOLEAN            | :ref:`BoolDelegate <delegate-BoolDelegate>`                          | .. image:: ../_static/editors/BoolEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Boolean            | :ref:`BoolDelegate <delegate-BoolDelegate>`                          | .. image:: ../_static/editors/BoolEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Code               | :ref:`CodeDelegate <delegate-CodeDelegate>`                          | .. image:: ../_static/editors/CodeEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Color              | :ref:`ColorDelegate <delegate-ColorDelegate>`                        | .. image:: ../_static/editors/ColorEditor_editable.png               |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Date               | :ref:`DateDelegate <delegate-DateDelegate>`                          | .. image:: ../_static/editors/DateEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| DateTime           | :ref:`DateTimeDelegate <delegate-DateTimeDelegate>`                  | .. image:: ../_static/editors/DateTimeEditor_editable.png            |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Enumeration        | :ref:`EnumerationDelegate <delegate-EnumerationDelegate>`            | .. image:: ../_static/editors/ChoicesEditor_editable.png             |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| File               | :ref:`FileDelegate <delegate-FileDelegate>`                          | .. image:: ../_static/editors/FileEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Float              | :ref:`FloatDelegate <delegate-FloatDelegate>`                        | .. image:: ../_static/editors/FloatEditor_editable.png               |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| INT                | :ref:`IntegerDelegate <delegate-IntegerDelegate>`                    | .. image:: ../_static/editors/IntegerEditor_editable.png             |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| IPAddress          | :ref:`CodeDelegate <delegate-CodeDelegate>`                          | .. image:: ../_static/editors/CodeEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Image              | :ref:`ImageDelegate <delegate-ImageDelegate>`                        | .. image:: ../_static/editors/ImageEditor_editable.png               |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Integer            | :ref:`IntegerDelegate <delegate-IntegerDelegate>`                    | .. image:: ../_static/editors/IntegerEditor_editable.png             |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Language           | :ref:`EnumerationDelegate <delegate-EnumerationDelegate>`            | .. image:: ../_static/editors/ChoicesEditor_editable.png             |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Numeric            | :ref:`FloatDelegate <delegate-FloatDelegate>`                        | .. image:: ../_static/editors/FloatEditor_editable.png               |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Rating             | :ref:`StarDelegate <delegate-StarDelegate>`                          | .. image:: ../_static/editors/StarEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| RichText           | :ref:`RichTextDelegate <delegate-RichTextDelegate>`                  | .. image:: ../_static/editors/RichTextEditor_editable.png            |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| String             | :ref:`PlainTextDelegate <delegate-PlainTextDelegate>`                | .. image:: ../_static/editors/TextLineEditor_editable.png            |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Text               | :ref:`PlainTextDelegate <delegate-PlainTextDelegate>`                | .. image:: ../_static/editors/TextLineEditor_editable.png            |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Time               | :ref:`TimeDelegate <delegate-TimeDelegate>`                          | .. image:: ../_static/editors/TimeEditor_editable.png                |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| Unicode            | :ref:`PlainTextDelegate <delegate-PlainTextDelegate>`                | .. image:: ../_static/editors/TextLineEditor_editable.png            |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+
| VirtualAddress     | :ref:`VirtualAddressDelegate <delegate-VirtualAddressDelegate>`      | .. image:: ../_static/editors/VirtualAddressEditor_editable.png      |
+--------------------+----------------------------------------------------------------------+----------------------------------------------------------------------+

Classes
  DummyField
Variables
  _sqlalchemy_to_python_type_ = {<class 'sqlalchemy.types.String...
  row_separator = '+--------------------+-----------------------...
  row_format = '| %-18s | %-68s | %-68s |'
  doc = 'Field types handled through introspection :\n\n+-------...
  field_types = [<class 'sqlalchemy.types.BOOLEAN'>, <class 'sql...
  __doc__ = """Field types handled through introspectio...
  __package__ = 'Camelot.camelot.view'
  field_attributes = {'delegate': <class 'Camelot.camelot.view.c...
  row = '| VirtualAddress | :ref:`VirtualAddressDelegate <de...
Variables Details

_sqlalchemy_to_python_type_

Value:
{sqlalchemy.types.Boolean: lambda f: {'python_type': bool, 'editable':\
 True, 'nullable': True, 'delegate': delegates.BoolDelegate, 'from_str\
ing': bool_from_string, 'operators':(operator.eq,),}, sqlalchemy.types\
.BOOLEAN: lambda f: {'python_type': bool, 'editable': True, 'nullable'\
: True, 'delegate': delegates.BoolDelegate, 'from_string': bool_from_s\
tring, 'operators':(operator.eq,),}, sqlalchemy.types.Date: lambda f: \
{'python_type': datetime.date, 'format': constants.camelot_date_format\
, 'editable': True, 'min': None, 'max': None, 'nullable': True, 'deleg\
...

row_separator

Value:
'+--------------------+-----------------------------------------------\
-----------------------+----------------------------------------------\
------------------------+'

doc

Value:
'''Field types handled through introspection :

+--------------------+------------------------------------------------\
----------------------+-----------------------------------------------\
-----------------------+
| **Field type**     | **Default delegate**                           \
                      | **Default editor**                            \
                       |
...

field_types

Value:
[<class 'sqlalchemy.types.BOOLEAN'>,
 <class 'sqlalchemy.types.Boolean'>,
 <class 'camelot.types.Code'>,
 <class 'camelot.types.Color'>,
 <class 'sqlalchemy.types.Date'>,
 <class 'sqlalchemy.types.DateTime'>,
 <class 'camelot.types.Enumeration'>,
 <class 'camelot.types.File'>,
...

__doc__

Value:
"""Field types handled through introspection :

"""+ row_separator+ """
"""+ row_format %('**Field type**', '**Default delegate**', '**Default\
 editor**')+ """
"""+ row_separator+ """
"""

field_attributes

Value:
{'delegate': <class 'Camelot.camelot.view.controls.delegates.virtualad\
dressdelegate.VirtualAddressDelegate'>,
 'editable': True,
 'nullable': True,
 'operators': (<built-in function eq>,
               <built-in function ne>,
               <function like_op at 0xb51472c>),
 'python_type': <type 'str'>}

row

Value:
'| VirtualAddress     | :ref:`VirtualAddressDelegate <delegate-Virtual\
AddressDelegate>`      | .. image:: ../_static/editors/VirtualAddressE\
ditor_editable.png      |'