Changes between Version 2 and Version 3 of DeveloperGuidelines/TemplatePlugins
- Timestamp:
- 07/25/16 13:52:06 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/TemplatePlugins
v2 v3 54 54 - plugins '''should''' raise an exception in case of unrecoverable errors during setup, in order to deactivate themselves 55 55 - 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) 57 57 - 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 58 58 - 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: … … 83 83 DeveloperGuidelines 84 84 DeveloperGuidelines 85 DeveloperGuidelines