Package orm2 :: Module exceptions :: Class DBObjContainsNoData
[hide private]
[frames] | no frames]

Class DBObjContainsNoData

source code

exceptions.Exception --+    
                       |    
            ORMException --+
                           |
                          DBObjContainsNoData

This exception is raised if a dbobj wants to be inserted that has none of its attributes set. If you want an empty tuple to be inserted to the database (to be filled with default values by the backend, for instance) you have to set at least one of the db-attributes to None.

Instance Methods [hide private]

Inherited from exceptions.Exception: __getitem__, __init__, __str__