Changes between Version 16 and Version 17 of RemovingTheMagic


Ignore:
Timestamp:
Dec 15, 2005, 8:02:52 PM (19 years ago)
Author:
Adrian Holovaty
Comment:

Added "Removed SilentVariableFailure exception" section

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v16 v17  
    150150}}}
    151151
    152 == API usage: Overriding model methods (and pre- and post-save hooks) ==
    153 
    154 '''Status: Done'''
    155 
    156 Proper subclassing of methods will now work, so you can subclass the automatic {{{save()}}} and {{{delete()}}} methods. This removes the need for the {{{_pre_save()}}} and {{{_post_save()}}} hooks. Example:
     152== Added a more powerful way of overriding model methods, removed hard-coded _pre_save(), _post_save(), etc. ==
     153
     154'''Status: Done'''
     155
     156Proper subclassing of methods now works, so you can subclass the automatic {{{save()}}} and {{{delete()}}} methods. This removes the need for the {{{_pre_save()}}}, {{{_post_save()}}}, {{{_pre_delete()}}} and {{{_post_delete()}}} hooks -- all of which have been removed. Example:
    157157
    158158{{{
     
    184184}}}
    185185
    186 == API usage: Overriding table-level functions ==
     186== New API functionality: Overriding table-level functions ==
    187187
    188188'''Status: Done'''
     
    205205}}}
    206206
    207 == DoesNotExist exception renamed ==
     207== Renamed DoesNotExist exception ==
    208208
    209209'''Status: Done'''
     
    231231}}}
    232232
     233== Removed SilentVariableFailure exception ==
     234
     235'''Status: Done'''
     236
     237Old behavior: Any exception that subclasses {{{django.core.template.SilentVariableFailure}}} fails silently in the template system.
     238
     239New behavior: Any exception that has a {{{silent_variable_failure}}} attribute fails silently in the template system. {{{django.core.template.SilentVariableFailure}}} no longer exists.
     240
    233241== Automatic manipulators ==
    234242
Back to Top