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

Type Manipulator

object --+
         |
        Manipulator

Known Subclasses:
AutomaticManipulator

Method Summary
  __init__(self)
  __delitem__(self, field_name)
Deletes the field with the given field name; raises KeyError on failure
  __getitem__(self, field_name)
Looks up field by field name; raises KeyError on failure
  check_permissions(self, user)
Confirms user has required permissions to use this manipulator; raises PermissionDenied on failure.
  do_html2python(self, new_data)
Convert the data from HTML data types to Python datatypes, changing the object in place.
  get_validation_errors(self, new_data)
Returns dictionary mapping field_names to error-message lists
  prepare(self, new_data)
Makes any necessary preparations to new_data, in place, before data has been validated.
  save(self, new_data)
Saves the changes and returns the new object
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
str required_permission = ''

Method Details

__delitem__(self, field_name)
(Index deletion operator)

Deletes the field with the given field name; raises KeyError on failure

__getitem__(self, field_name)
(Indexing operator)

Looks up field by field name; raises KeyError on failure

check_permissions(self, user)

Confirms user has required permissions to use this manipulator; raises PermissionDenied on failure.

do_html2python(self, new_data)

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.

get_validation_errors(self, new_data)

Returns dictionary mapping field_names to error-message lists

prepare(self, new_data)

Makes any necessary preparations to new_data, in place, before data has been validated.

save(self, new_data)

Saves the changes and returns the new object

Class Variable Details

required_permission

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Tue Apr 29 23:35:16 2008 http://epydoc.sf.net