[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:1.61.6.13

Jeremy Hylton jeremy@zope.com
Wed, 25 Sep 2002 12:09:46 -0400


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv26867

Modified Files:
      Tag: Zope-2_5-branch
	HTTPRequest.py 
Log Message:
Backport: Remove unused str_field() function.


=== Zope/lib/python/ZPublisher/HTTPRequest.py 1.61.6.12 => 1.61.6.13 ===
--- Zope/lib/python/ZPublisher/HTTPRequest.py:1.61.6.12	Mon Aug 19 10:56:08 2002
+++ Zope/lib/python/ZPublisher/HTTPRequest.py	Wed Sep 25 12:09:46 2002
@@ -1337,18 +1337,6 @@
     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