Package Camelot :: Package camelot :: Package types |
[frames] | no frames]

# Package types

source code

    Camelot extends the SQLAlchemy field types with a number of its own field
    types. Those field types are automatically mapped to a specific delegate taking
    care of the visualisation.

    Those fields are stored in the :mod:`camelot.types` module.

Classes
| VirtualAddress A single field that can be used to enter phone numbers, fax numbers, email addresses, im addresses.
| Code SQLAlchemy column type to store codes. Where a code is a list of strings on which a regular expression can be enforced.
| IPAddress
| Rating The rating field is an integer field that is visualized as a number of stars that can be selected:
| RichText RichText fields are unlimited text fields which contain html. The html will be rendered in a rich text editor.
| Language The languages are stored as ISO codes in the database
| Color The Color field returns and accepts tuples of the form (r,g,b,a) where r,g,b,a are integers between 0 and 255. The color is stored as an hexadecimal string of the form AARRGGBB into the database, where AA is the transparency, RR is red, GG is green BB is blue:
| Enumeration The enumeration field stores integers in the database, but represents them as strings. This allows efficient storage and querying while preserving readable code.
| File Sqlalchemy column type to store files. Only the location of the file is stored
| Image Sqlalchemy column type to store images

Variables
| logger = `logging.getLogger('camelot.types')`
| __package__ = ``'``Camelot.camelot.types``'``