Changes between Version 18 and Version 19 of DeveloperGuidelinesS3Framework


Ignore:
Timestamp:
04/23/09 19:46:56 (16 years ago)
Author:
Fran Boon
Comment:

New Flash styles implementation (closer to vanilla web2py)

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesS3Framework

    v18 v19  
    9191Different Flash styles can be set via:
    9292{{{
    93 session.error=T("Unsupported format!")
     93session.flash=DIV(T("Unsupported format!"),_class="error")
    9494redirect(URL(r=request,f=resource))
    9595}}}
    9696or (in a Multiple Table form.accepts):
    9797{{{
    98 response.error=T("Form invalid!")
     98response.flash=DIV(T("Form invalid!"),_class="error")
    9999}}}
    100100Supported styles are:
     
    102102 * .error
    103103 * .information
    104  * .confirmation (Standard T2 Flash messages are usually of this sort so we class them in the same way)
     104 * .confirmation (If no class is specified then we default to this)
    105105
    106106=== Settings ===