[Zope-Checkins] CVS: Packages/ZPublisher - cgi_hotfix.py:1.1.2.1 HTTPRequest.py:1.54.4.1
Evan Simpson
evan@digicool.com
Wed, 25 Jul 2001 15:37:04 -0400
Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv16479
Modified Files:
Tag: Zope-2_4-branch
HTTPRequest.py
Added Files:
Tag: Zope-2_4-branch
cgi_hotfix.py
Log Message:
Hotfix 2001-07-24
=== Added File Packages/ZPublisher/cgi_hotfix.py ===
=== Packages/ZPublisher/HTTPRequest.py 1.54 => 1.54.4.1 ===
__repr__=__str__
+ def text(self):
+ result="FORM\n\n"
+ row='%-20s %s\n'
+ for k,v in self.form.items():
+ result=result + row % (k, repr(v))
+ result=result+"\nCOOKIES\n\n"
+ for k,v in self.cookies.items():
+ result=result + row % (k, repr(v))
+ result=result+"\nOTHER\n\n"
+ for k,v in self.other.items():
+ if k in ('PARENTS','RESPONSE'): continue
+ result=result + row % (k, repr(v))
+
+ for n in "0123456789":
+ key = "URL%s"%n
+ try: result=result + row % (key, self[key])
+ except KeyError: pass
+ for n in "0123456789":
+ key = "BASE%s"%n
+ try: result=result + row % (key, self[key])
+ except KeyError: pass
+
+ result=result+"\nENVIRON\n\n"
+ for k,v in self.environ.items():
+ if not hide_key(k):
+ result=result + row % (k, v)
+ return result
+
def _authUserPW(self):
global base64
auth=self._auth