Commit 60b6d59f authored by Jim Fulton's avatar Jim Fulton

Moved the class definition for the class used for ":record" fields to a global variable.

parent f718847e
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
import regex, sys, os, string import regex, sys, os, string
from string import lower, atoi, rfind, split, strip, join, upper, find from string import lower, atoi, rfind, split, strip, join, upper, find
...@@ -190,14 +190,6 @@ class HTTPRequest(BaseRequest): ...@@ -190,14 +190,6 @@ class HTTPRequest(BaseRequest):
form={} form={}
defaults={} defaults={}
# add class
class record:
def __str__(self):
L1 = self.__dict__.items()
L1.sort()
return join(map(lambda item: "%s: %s" %item, L1), ", ")
__repr__ = __str__
meth=None meth=None
fs=FieldStorage(fp=fp,environ=environ,keep_blank_values=1) fs=FieldStorage(fp=fp,environ=environ,keep_blank_values=1)
...@@ -854,3 +846,12 @@ def parse_cookie(text, ...@@ -854,3 +846,12 @@ def parse_cookie(text,
if not already_have(name): result[name]=value if not already_have(name): result[name]=value
return apply(parse_cookie,(text[l:],result)) return apply(parse_cookie,(text[l:],result))
# add class
class record:
def __str__(self):
L1 = self.__dict__.items()
L1.sort()
return join(map(lambda item: "%s: %s" %item, L1), ", ")
__repr__ = __str__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment