Commit ebef6568 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove unused str_field() function.

The code referenced several undefined globals (ListType, StringType)
is not referenced anywhere in the Zope code base.
parent 3ac4c21d
......@@ -11,7 +11,7 @@
#
##############################################################################
__version__='$Revision: 1.81 $'[11:-2]
__version__='$Revision: 1.82 $'[11:-2]
import re, sys, os, urllib, time, random, cgi, codecs
from BaseRequest import BaseRequest
......@@ -1359,18 +1359,6 @@ def sane_environment(env):
return dict
def str_field(v):
if type(v) is ListType:
return map(str_field,v)
if isinstance(v, FieldStorage):
v=v.value
elif type(v) is not StringType:
if hasattr(v,'file') and v.file: v=v.file
elif hasattr(v,'value'): v=v.value
return v
class FileUpload:
'''\
File upload objects
......
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