Python Cookies module? Bugs?

Benjamin Schollnick junkster at nospam.rochester.rr.com
Fri Oct 22 13:17:16 EDT 1999


On Fri, 22 Oct 1999 15:31:00, Oleg Broytmann <phd at phd.russ.ru> wrote:


>    But of course. It is normal to Python. Python (nont Cookie.py) saw
> mycookie["PSG"] in expression mycookie["PSG"]["path"] and tryed to find the
> object. But the object isn't there.
>    You certainly must add an object mycookie["PSG"] before setting its
> properties.

That's what I thought, but the instructions for cookie.py imply just 
the opposite...
    <grin>  That's kinda the point.


>    cookie["anketa_id"] = str(1024)
>    cookie["anketa_id"]["expires"] = time.strftime("%a, %d-%b-%Y %T GMT", t)
>    cookie["anketa_id"]["path"] = "/"

Why setup the cookie equaling a string w/length of 1024??

This might be where I'm running into problems.... The only reason I 
can think of 
doing that, is to ensure that the other variables fit into the 
"mother" string????


> > Is there any "preferences" in the python world on Cookie
> > Modules?  (I.e. any better/worse/etc modules)
> 
>    It s excellent module, IMHO! Just use right way...

I agree, it's nice.... But the instructions aren't written right...
Hard to use a module when the docs/examples are telling 
you the wrong thing.

		- Benjamin

BTW-> Thanks for the example, I'll have to try that string
	length maneuver and see if it helps.  Because I 
	believe I have everything else pretty much the
	same.

====================================================
          (Remove "NoSpam" to Email me)
====================================================
Please feel free to copy any and or all of this sig.
A little something for spam bots:

root at localhost postmaster at localhost admin at localhost
abuse at localhost postmaster at 127.0.0.1

Chairman William Kennard: bkennard at fcc.gov 
Commissioner Susan Ness: sness at fcc.gov
Commissioner Harold Furchtgott-Roth: hfurchtg at fcc.gov
Commissioner Michael Powell: mpowell at fcc.gov
Commissioner Gloria Tristani: gtristan at fcc.gov
consumerline at ftc.gov
fccinfo at fcc.gov
ssegal at fcc.gov





More information about the Python-list mailing list