import web, account
urls = (
        '/account', account.app_account
)
app = web.application(urls, globals())
session = web.session.Session(app, web.session.DiskStore('sessions'))
def session_hook():
        session.testing = 'test'
        web.ctx.session = session
if __name__ == "__main__":
        app.add_processor(web.loadhook(session_hook))
        app.run()

import web
urls = (
        '/create', 'create',
)
app_account = web.application(urls, globals())
class create:
        def GET(self):
                return web.ctx.session.testing
if __name__ == "__main__":
    app.run()

-- 
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