[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.41

Sidnei da Silva sidnei@x3ng.com.br
Tue, 28 Jan 2003 09:25:08 -0500


Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv2853/lib/python/Products/ZCTextIndex

Modified Files:
	ZCTextIndex.py 
Log Message:
this would cause a keyerror if request is none

=== Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py 1.40 => 1.41 ===
--- Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py:1.40	Fri Jan 24 10:07:22 2003
+++ Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py	Tue Jan 28 09:25:05 2003
@@ -242,8 +242,10 @@
 def manage_addZCTextIndex(self, id, extra=None, REQUEST=None,
                           RESPONSE=None):
     """Add a text index"""
+    if REQUEST is None: URL3 = None
+    else: URL3 = REQUEST.URL3
     return self.manage_addIndex(id, 'ZCTextIndex', extra,
-                                REQUEST, RESPONSE, REQUEST.URL3)
+                                REQUEST, RESPONSE, URL3)
 
 manage_addZCTextIndexForm = DTMLFile('dtml/addZCTextIndex', globals())