> is it possible to have something like this integrated with webpy for showing
> status messages to user
> http://python-rum.org/wiki/WebFlash

(untested code below)

# create a load hook to move flash message from the session to the context
session.flash = {}
def flash_msg():
    # set the context flash message
    web.ctx.flash = session.flash or {}

    # clear the flash messages from the session
    session.flash = {}
app.add_processor(web.loadhook(flash_msg))

# helper function to add new flash messages
def flash(**kargs):
    web.session.flash.update(kargs)

-- 
-Jeeva

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to