Manera, Villiam
vmanera at manord.com
Tue Aug 3 15:38:59 EDT 2004
I added this code in prep(): def prep(self): ..... cookies = self.get_cookies() COOKIE_NAME = 'backgroundcolor' if cookies.has_key(COOKIE_NAME): self.body_attrs['BGCOLOR']=cookies[COOKIE_NAME].value in order to achieve what I wont I had to modify the servlet.py get_cookies: def get_cookies(self, klass=Cookie.Cookie, **kw): ... return Cookie.get_cookies(self.req, klass) #return Cookie.get_cookies(self.req, klass, kw) <--- with kw : File "C:\PROGRA~1\Python23\lib\site-packages\mod_python\servlet.py", line 484, in get_cookies return Cookie.get_cookies(self.req, klass, kw) TypeError: get_cookies() takes at most 2 arguments (3 given) any Idea? Villiam Manera Manifatture del Nord srl via Mazzacurati 6 42100 Reggio Emilia RE ITALY Tel. +39 0522 358200 Fax +39 0522 268700 email : vmanera at manord.com www.pennyblack.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://modpython.org/pipermail/mod_python/attachments/20040803/63a6c881/attachment.html
|