Home | Trees | Indices | Help |
|
---|
|
Functions for displaying status messages on the next page.
Intended as drop-in replacement and building on turbogears.flash() but allow for much nicer styling of the messages, since you can pass a "status" parameter, which will be used for the CSS class of the DIV element that encloses the status message.
|
|||
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
fancyflashwidget = FancyFlashWidget(name='statusmessage', stat
|
|||
_default_timeout = 0
|
|
Display fancy flash window with message msg on the next page. status - string, which will be used as the css class for the inner DIV element of the message window. The default CSS supports different styles and icons for status "info", "success", "warning" and "error". timeout - number of seconds after which the message will fade out. The client needs to have JavaScript enabled for this to work. Default is 0, i.e. the message stays until the user clicks on it. allow_html- normally, HTML markup in msg is escaped for security reasons. Set this to True to allow usage of HTML markup in the message text. |
Display fancy flash window with message msg and status "error". For the timeout and alllow_html arguments, see the documentation for the statusmessage funcion. |
Display fancy flash window with message msg and status "info". For the timeout and alllow_html arguments, see the documentation for the statusmessage funcion. |
Display fancy flash window with message msg and status "success". For the timeout and alllow_html arguments, see the documentation for the statusmessage funcion. |
Display fancy flash window with message msg and status "warning". For the timeout and alllow_html arguments, see the documentation for the statusmessage funcion. |
|
fancyflashwidget
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Feb 4 18:13:32 2008 | http://epydoc.sourceforge.net |