Package django :: Package oldforms :: Class Manipulator
[hide private]
[frames] | no frames]

Class Manipulator

source code

object --+
         |
        Manipulator

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, field_name)
Looks up field by field name; raises KeyError on failure
source code
 
__delitem__(self, field_name)
Deletes the field with the given field name; raises KeyError on failure
source code
 
check_permissions(self, user)
Confirms user has required permissions to use this manipulator; raises PermissionDenied on failure.
source code
 
prepare(self, new_data)
Makes any necessary preparations to new_data, in place, before data has been validated.
source code
 
get_validation_errors(self, new_data)
Returns dictionary mapping field_names to error-message lists
source code
 
save(self, new_data)
Saves the changes and returns the new object
source code
 
do_html2python(self, new_data)
Convert the data from HTML data types to Python datatypes, changing the object in place.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  required_permission = ''
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

do_html2python(self, new_data)

source code 

Convert the data from HTML data types to Python datatypes, changing the object in place. This happens after validation but before storage. This must happen after validation because html2python functions aren't expected to deal with invalid input.