| Home | Trees | Index | Help |
|
|---|
| Module pyweb :: Class httpenv |
|
Instances of this class hold all pertinent information relating to the current http request.
Info includes:| Method Summary | |
|---|---|
Creates an http env object, containing form, URL and cookie data | |
log(self,
msg)
| |
Extracts from cookies '__data', '__data_0', '__data_1', ... | |
Extracts our 'data' attribute, encodes it, signs it, and stores it into one or more cookies in the form '__data', '__data_0', '__data_1', ... | |
Sets the expiry date of the cookie | |
Formats a loud error message for insertion at the top of the page | |
| Method Details |
|---|
__init__(self,
**kw)
Creates an http env object, containing form, URL and cookie data
|
retrieveData(self)Extracts from cookies '__data', '__data_0', '__data_1', ... the encoded dictionary that forms the attribute 'data'. Authenticates this encoded dictionary via hmac/sha1 refer to the saveData method for info of how the data dict gets broken into multiple cookies |
saveData(self)Extracts our 'data' attribute, encodes it, signs it, and stores it into one or more cookies in the form '__data', '__data_0', '__data_1', ... If there's a lot of data, it will need to be broken up into multiple cookies. So here's the encoding scheme:
|
setDataExpiry(self, seconds)Sets the expiry date of the cookie |
seterror(self, errtype)Formats a loud error message for insertion at the top of the page |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat Feb 7 20:08:06 2004 | http://epydoc.sf.net |