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]
  idna_literal
SQL literal class for <b>valid</b> Unicode (idna) domain names and email addresses.
  PDomain
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.
  PEMail
Like PDomain above, but for e-Mail addresses.
  pickle
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.