[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.35.2.4
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 28 Jan 2003 09:20:52 -0500
Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv2292/lib/python/Products/ZCTextIndex
Modified Files:
Tag: Zope-2_6-branch
ZCTextIndex.py
Log Message:
this would cause a keyerror if request is none
=== Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py 1.35.2.3 => 1.35.2.4 ===
--- Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py:1.35.2.3 Mon Dec 16 14:13:04 2002
+++ Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py Tue Jan 28 09:20:50 2003
@@ -238,8 +238,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())