[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:1.82
Jeremy Hylton
jeremy@zope.com
Tue, 24 Sep 2002 17:57:40 -0400
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv10931
Modified Files:
HTTPRequest.py
Log Message:
Remove unused str_field() function.
The code referenced several undefined globals (ListType, StringType)
is not referenced anywhere in the Zope code base.
=== Zope/lib/python/ZPublisher/HTTPRequest.py 1.81 => 1.82 ===
--- Zope/lib/python/ZPublisher/HTTPRequest.py:1.81 Thu Aug 29 15:35:00 2002
+++ Zope/lib/python/ZPublisher/HTTPRequest.py Tue Sep 24 17:57:39 2002
@@ -1359,18 +1359,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