Changes between Version 2 and Version 3 of DeveloperGuidelines/TemplatePlugins


Ignore:
Timestamp:
07/25/16 13:52:06 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/TemplatePlugins

    v2 v3  
    5454 - plugins '''should''' raise an exception in case of unrecoverable errors during setup, in order to deactivate themselves
    5555 - plugins are responsible to log all their errors themselves, using {{{current.log}}}
    56  - plugins '''must not''' redirect (HTTP 30x) unconditionally (that would give an indefinite redirection loop)
     56 - a plugin's {{{setup()}}} '''must not''' redirect  or otherwise raise HTTP30x (that would give an indefinite redirection loop)
    5757 - there is no particular order in which plugins are run - plugins with conflicts should auto-detect each other (via registry), log the problem, and then raise an exception during setup in order to deactivate themselves
    5858 - a plugin with {{{status=False}}} will not automatically be reloaded. Reloading can be enforced by restarting the server thread, by calling {{{PluginLoader.load(plugin_name, force=True)}}}, or by setting the registry entry to None:
     
    8383DeveloperGuidelines
    8484DeveloperGuidelines
     85DeveloperGuidelines