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

Class VirtualAddress

source code


A single field that can be used to enter phone numbers, fax numbers, email
addresses, im addresses.  The editor provides soft validation of the data
entered.  The address or number is stored as a string in the database.
  
This column type accepts and returns tuples of strings, the first string is
the :attr:`virtual_address_type`, and the second the address itself.

eg: ``('email','project-camelot@conceptive.be')`` is stored as
``mail://project-camelot@conceptive.be``

.. image:: ../_static/virtualaddress_editor.png

Nested Classes
  impl
A variable length Unicode string.
Instance Methods
 
bind_processor(self, dialect)
Defines a bind parameter processing function.
source code
 
result_processor(self, dialect)
Defines a result-column processing function.
source code

Inherited from sqlalchemy.types.TypeDecorator: __getattr__, __init__, compare_values, copy, copy_value, dialect_impl, get_col_spec, get_dbapi_type, is_mutable, load_dialect_impl, process_bind_param, process_result_value

Inherited from sqlalchemy.types.AbstractType: __repr__, adapt_operator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  virtual_address_types = ['phone', 'fax', 'mobile', 'email', 'i...
Properties

Inherited from object: __class__

Method Details

bind_processor(self, dialect)

source code 
Defines a bind parameter processing function.
Overrides: sqlalchemy.types.AbstractType.bind_processor
(inherited documentation)

result_processor(self, dialect)

source code 
Defines a result-column processing function.
Overrides: sqlalchemy.types.AbstractType.result_processor
(inherited documentation)

Class Variable Details

virtual_address_types

Value:
['phone', 'fax', 'mobile', 'email', 'im', 'pager']