If the demo application is activated, an announcement now appears on the login page to inform visitors on how to use the demo.

This commit is contained in:
Antoine Nguyen
2011-11-18 23:42:31 +01:00
parent efc024ad93
commit d23923a248
8 changed files with 83 additions and 27 deletions
+12 -1
View File
@@ -126,7 +126,7 @@ that corresponds to the ``Request`` object used inside the associated
view function.
UserLogout
__________
----------
Raised when a user logs out. This event provides a ``request`` argument
that corresponds to the ``Request`` object used inside the associated
@@ -245,6 +245,17 @@ ExtDisabled
Raised just after an extension has been disabled. The Extension
object is available inside the ``ext`` keyword argument.
GetAnnouncement
---------------
Some places in the interface let plugins add their own announcement
(ie. message). A keyword argument ``target`` is provided to registered
callbacks and indicates the place where the announcement will appear:
* ``loginpage`` : corresponds to the login page
Callbacks listening to this event must return a list of string.
Parameters
==========