Notify
This allows you to queue messages to be displayed to the user on
the next page the user reads.
The Notify class is accessible via the wareweb.notify module.
- This allows you to give messages in response to POST requests,
then redirect to a another page and display that message (e.g, 'event added').
Usage:
class SitePage(Servlet): message = Notify() class MyPage(SitePage): def setup(self): if something_done: self.message.write('All good!') self.redirect(...) def respond(self): write header... if self.message: self.write('<div class="message">%s</div>
- '
- % self.message.html)
Methods
See the source for more information.