[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/onlinehelp/__init__.py - removed unused import

Eckart Hertzler eckart at hertzler.de
Wed May 26 11:58:58 EDT 2004


Log message for revision 25012:
- removed unused import
- added *.html (*.htm) as valid extensions 
  for source type 'zope.source.stx'



-=-
Modified: Zope3/trunk/src/zope/app/onlinehelp/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/onlinehelp/__init__.py	2004-05-26 15:09:27 UTC (rev 25011)
+++ Zope3/trunk/src/zope/app/onlinehelp/__init__.py	2004-05-26 15:58:58 UTC (rev 25012)
@@ -19,7 +19,6 @@
 $Id$
 """
 import os
-#import os.path
 
 import zope.app
 from zope.app import zapi
@@ -93,10 +92,12 @@
 
         self.type = 'zope.source.plaintext'
         
-        if file_ext == ('rst' or 'rest') :
+        if file_ext in ('rst', 'rest') :
             self.type = 'zope.source.rest'
         elif file_ext == 'stx':
             self.type = 'zope.source.stx'
+        elif file_ext in ('html', 'htm'):
+            self.type = 'zope.source.stx'
         
         self.source = open(self.path).read()
 




More information about the Zope3-Checkins mailing list