Changes between Version 3 and Version 4 of NewAdminChanges


Ignore:
Timestamp:
10/16/2005 03:23:55 PM (10 years ago)
Author:
adrian
Comment:

Cleaned up formatting

Legend:

Unmodified
Added
Removed
Modified
  • NewAdminChanges

    v3 v4  
    1 The new admin branch contains a number of changes.
     1= New-admin changes =
    22
    3 '''Manipulators'''
     3The new-admin branch contains a number of changes.
    44
    5 Manipulators have a new optional argument to their constructors, follow.
    6 The argument is a dictionary indicating which fields and related objects
    7 to extract in flatten_data and examine when saving the object.
    8 The 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.
     5== Manipulators ==
     6
     7Manipulators have a new optional argument to their constructors: {{{follow}}}. The argument is a dictionary indicating which fields and related objects to extract in flatten_data and examine when saving the object.
     8
     9The default set to follow is:
     10
     11 * Any fields without {{{editable=False}}}.
     12 * Any related objects with {{{edit_inline}}} set on the {{{ForeignKey}}} relating to the class the manipulator is concerned with.
     13
    1114This is the set of fields shown by the admin.
     15
     16(insert example)
     17
     18Manipulators have a new method, {{{flatten_data()}}}. This 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. It must be called before creating the formfield wrapper is created.
     19
     20The data from a post must have {{{manipulator.do_html2python(new_data)}}} called on it before it is used to repopulate a formfieldwrapper.
    1221
    1322insert example
    1423
     24== Templates ==
    1525
    16 manipulators have a new method, flatten_data().
    17 This 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.
    18 It must be called before creating the formfield wrapper is created.
     26A new tag, called {{{include}}}, which is an improvement on ssi parsed. See #598.
    1927
    20 The data from a post must have
    21 manipulator.do_html2python(new_data)
     28Improved 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.
    2229
    23 called on it before it is used to repopulate a formfieldwrapper.
     30== Admin converted to separate templates ==
    2431
    25 insert example
    26 
    27 '''Templates'''
    28 
    29 A new tag called include which is an imporvement on ssi parsed. See #598.
    30 Improved 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.
    31 
    32 
    33 '''Admin converted to separate templates'''
    34 
    35 The admin is now rendered using seperate templates.
    36 
     32The admin is now rendered using separate templates.
Back to Top