Changes between Version 5 and Version 6 of DeveloperGuidelines/FAQ


Ignore:
Timestamp:
08/10/11 17:13:01 (10 years ago)
Author:
Michael Howden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/FAQ

    v5 v6  
    1919}}}
    2020
     21== Interactive vs. Non-Iteractive Fucntions ==
     22 * '''Interactive''' = via web browser (html)
     23 * '''Non-Iteractive''' = Sync, import, etc (xml, csv)
     24
     25Never do a redirect or create records (the latter is slightly less
     26100%) in non-interactive functions.
     27
     28All resources should assume to be touched non-interactively at some point (even if just to load test/demo data)
     29
     30onaccept & onvalidation are always called by non-interactive functions
     31
     32Protect sections within these functions to be only accessed via interactive calls using:
     33if "_formkey" in request.post_vars:
     34
     35
    2136DeveloperGuidelines