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

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


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

Modified Files:
      Tag: Zope-2_7-branch
	APIHelpTopic.py 
Log Message:
workaround for APIs that do not provide SearchableText() implementation


=== Zope/lib/python/HelpSys/APIHelpTopic.py 1.15 => 1.15.68.1 ===
--- 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:47:16 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