Changes between Initial Version and Version 1 of NewAdminChanges


Ignore:
Timestamp:
Oct 15, 2005, 8:51:36 AM (19 years ago)
Author:
rjwittams
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewAdminChanges

    v1 v1  
     1The new admin branch contains a number of changes.
     2
     3'''Manipulators'''
     4
     5Manipulators have a new optional argument to their constructors, follow.
     6The argument is a dictionary indicating which fields and related objects
     7to extract in flatten_data and examine when saving the object.
     8The default set to follow is
     9* Any fields without editable=False
     10* Any related objects with edit_inline set on the ForeignKey relating to the class the manipulator is concerned with.
     11This is the set of fields shown by the admin.
     12
     13insert example
     14
     15
     16manipulators have a new method, flatten_data().
     17This takes the data from the existing object (or the defaults in the case of an AddManipulator) and turns it into a suitable form for an HTTP post.
     18It must be called before creating the formfield wrapper is created.
     19
     20The data from a post must have
     21manipulator.do_html2python(new_data)
     22
     23called on it before it is used to repopulate a formfieldwrapper.
     24
     25insert example
     26
     27"""Templates"""
     28A new tag called include which is an imporvement on ssi parsed. See #598.
     29Improved error reporting when debug is on. See #603.  Also note that loaders must return a tuple of (source, filename) rather than just the source of a loaded template.
     30
     31
     32"""Admin converted to separate templates"""
     33
     34The admin is now rendered using seperate templates.
     35
Back to Top