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

Amos Latteier amos@zope.com
Mon, 22 Oct 2001 20:14:40 -0400


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

Modified Files:
	HelpSys.py 
Log Message:
Fine tuning the ZPT help system stuff.

  * There is now a ZPT Reference to go along with the DTML and API
    references in the online help system.

  * I changed the titles of some TAL and METAL help topics to make
    them look better in the help system.



=== Zope/lib/python/HelpSys/HelpSys.py 1.20 => 1.21 ===
         apitopics=[]
         dtmltopics=[]
+        zpttopics=[]
         for topic in self.objectValues('Help Topic'):
             if hasattr(topic,'isAPIHelpTopic') and topic.isAPIHelpTopic:
                 apitopics.append(topic)
@@ -334,12 +335,17 @@
                     id=topic.id
                 if id[:5]=='dtml-':
                     dtmltopics.append(topic)
+                if (id[:5] in ('metal', 'tales') and id[5] in ('.', '-')) or \
+                   (id[:3]=='tal' and id[3] in ('.', '-')):
+                    zpttopics.append(topic)
                 else:
                     topics.append(topic)
         if dtmltopics:
             topics = topics + [TreeCollection(' DTML Reference', dtmltopics)]
         if apitopics:
             topics = topics + [TreeCollection(' API Reference', apitopics)]
+        if zpttopics:
+            topics = topics + [TreeCollection(' ZPT Reference', zpttopics)]
         return topics
         
     def all_meta_types(self):