[Zope3-checkins] CVS: Zope3/src/zope/app/onlinehelp - __init__.py:1.7

Steve Alexander steve@cat-box.net
Tue, 3 Jun 2003 11:45:41 -0400


Update of /cvs-repository/Zope3/src/zope/app/onlinehelp
In directory cvs.zope.org:/tmp/cvs-serv9102/src/zope/app/onlinehelp

Modified Files:
	__init__.py 
Log Message:
Various formatting cleanup.
Use new implements() style.
replaced use of 0 and 1 with False and True.


=== Zope3/src/zope/app/onlinehelp/__init__.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/onlinehelp/__init__.py:1.6	Sun Jun  1 11:59:33 2003
+++ Zope3/src/zope/app/onlinehelp/__init__.py	Tue Jun  3 11:45:10 2003
@@ -27,11 +27,12 @@
 from zope.app.context import ContextWrapper
 
 from zope.app.interfaces.onlinehelp import IOnlineHelpTopic, IOnlineHelp
+from zope.interface import implements
 
 class OnlineHelpTopic(SampleContainer):
     __doc__ = IOnlineHelpTopic.__doc__
 
-    __implements__ =  IOnlineHelpTopic
+    implements(IOnlineHelpTopic)
 
     def __init__(self, title, path, doc_type='txt'):
         """Initialize object."""
@@ -57,7 +58,7 @@
     def getContent(self):
         "See Zope.App.OnlineHelp.interfaces.IOnlineHelpTopic"
         raw = open(self._content_path).read()
-        
+
         if self._doc_type == 'txt':
             return '<p>' + raw.replace('\n\n', '\n</p><p>') + '</p>'
         else:
@@ -67,7 +68,7 @@
 class OnlineHelp(OnlineHelpTopic):
     __doc__ = IOnlineHelp.__doc__
 
-    __implements__ =  IOnlineHelp, IContainmentRoot
+    implements(IOnlineHelp, IContainmentRoot)
 
     def __init__(self, title, path, doc_type='txt'):
         self._registry = {}