[Zope-Checkins] CVS: Zope/lib/python/HelpSys - APIHelpTopic.py:1.16

Andreas Jung cvs-admin at zope.org
Wed Nov 19 11:48:58 EST 2003


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

Modified Files:
	APIHelpTopic.py 
Log Message:
workaround for broken API implementations not providing SearchableText()


=== Zope/lib/python/HelpSys/APIHelpTopic.py 1.15 => 1.16 ===
--- Zope/lib/python/HelpSys/APIHelpTopic.py:1.15	Wed Aug 14 17:34:42 2002
+++ Zope/lib/python/HelpSys/APIHelpTopic.py	Wed Nov 19 11:48:57 2003
@@ -78,7 +78,9 @@
         "The full text of the Help Topic, for indexing purposes"
         text="%s %s" % (self.title, self.doc)
         for api in self.apis + self.funcs:
-            text="%s %s" % (text, api.SearchableText())
+            try:  # not all api's provide SearchableText()
+                text="%s %s" % (text, api.SearchableText())
+            except AttributeError: pass
         return text
 
 




More information about the Zope-Checkins mailing list