Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Set up a session when your classes are in a separate files
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adam Bengtsson  
View profile  
 More options Aug 15 2012, 10:36 am
From: Adam Bengtsson <adam...@gmail.com>
Date: Wed, 15 Aug 2012 07:36:15 -0700 (PDT)
Local: Wed, Aug 15 2012 10:36 am
Subject: Set up a session when your classes are in a separate files

Hello agian,

I was eager to try out the session functionality in web.py but am not
really sure how to go about doing this. Having consulted the cookbook I've
found the Working with Sessions-example.

In this example, the app-object is passed as an argument to the session
initialization, and the session-object is then used globally by the other
classes _in this file_.

How would I go about if I wanted to initialize or at least use a session
object in a different file where I no longer have the app-reference? Is
there some obscure reference to the current application somewhere within
the web-package?

Thank you,
Adam


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.