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

Module datatypes

source code

This module defines a number of datatypes (dbattributes) for particular purposes.

Classes [hide private]
SQL literal class for <b>valid</b> Unicode (idna) domain names and email addresses.
Just like orm2.datatypes.Unicode, except that it doesn't use the backend's charset to convert the Unicode string, but Python's idna (Internationalized Domain Names in Applications) codec which takes care of lowercasing and punicode representation and so on.
Like PDomain above, but for e-Mail addresses.
This datatype uses Python's pickle module to serialize (nearly) arbitrary Python objects into a string representation that is then stored in a regular database column.