Changes between Version 8 and Version 9 of NewAdminChanges


Ignore:
Timestamp:
10/18/2005 03:32:56 PM (10 years ago)
Author:
rjwittams
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewAdminChanges

    v8 v9  
    66
    77For view functions to work properly with all new features, a few changes are in order.
     8
     9 1. Make sure html2python is called regardless of whether there are errors, but '''after''' validation.
     10 2. Make sure you use flatten_data to get your new_data to fill in your forms, NOT just the {{{__dict__}}} of the object you are editing, or an empty dict with an AddManipulator. Otherwise, dates, foreign keys, inline editing and a  whole host of other things will NOT work properly, just like they do not work on trunk.
     11 3. Make sure you remove any hacks for modifying the data in your view function. This is now done by the fields themselves in flatten_data and instances where it works unexpectedly should be filed as bugs.
    812
    913From:
     
    6569
    6670}}}
     71
     72
    6773Without these changes, the new fixes will not work. It should work about as well as the trunk without these changes.
    68 
    69 So,
    70 
    71  1. Make sure html2python is called regardless of whether there are errors, but '''after''' validation.
    72  2. Make sure you use flatten_data to get your new_data to fill in your forms, NOT just the {{{__dict__}}} of the object you are editing. Otherwise, dates, foreign keys, inline editing and a  whole host of other things will NOT work properly, just like they do not work on trunk.
    73  3. Make sure you remove any hacks for modifying the data in your view function. This is now done by the fields themselves in flatten_data and instances where it works unexpectedly should be filed as bugs.
    7474
    7575== Manipulators ==
Back to Top