[Zope-Checkins] CVS: Zope2 - ProductContext.py:1.31.30.2
Michel Pelletier
michel@digicool.com
Thu, 17 May 2001 16:22:32 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/App
In directory korak.digicool.com:/tmp/cvs-serv14323
Modified Files:
Tag: APIDocs-branch
ProductContext.py
Log Message:
resolved stupid whitespace conflict
--- Updated File ProductContext.py in package Zope2 --
--- ProductContext.py 2001/05/17 18:51:04 1.31.30.1
+++ ProductContext.py 2001/05/17 20:22:31 1.31.30.2
@@ -283,14 +283,15 @@
#
Z = ZClasses.createZClassForBase( base_class, self.__pack )
return Z
-
-
def getProductHelp(self):
"""
Returns the ProductHelp associated with the current Product.
"""
return self.__prod.__of__(self.__app.Control_Panel.Products).getProductHelp()
+ def getPath(self):
+ return Globals.package_home(self.__pack.__dict__)
+
def registerHelpTopic(self, id, topic):
"""
Register a Help Topic for a product.
@@ -368,7 +369,10 @@
self.registerHelpTopic(file, ht)
elif ext in ('.stx', '.txt'):
title=string.split(open(os.path.join(path,file),'rb').readline(), ':')[0]
- ht=HelpTopic.STXTopic(file, title, os.path.join(path, file))
+ categories = None
+ if file[:5]=='dtml-':
+ categories = ('DTML',)
+ ht=HelpTopic.STXTopic(file, title, os.path.join(path, file), categories=categories)
self.registerHelpTopic(file, ht)
elif ext in ('.jpg', '.gif', '.png'):
ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file))
@@ -376,7 +380,3 @@
elif ext in ('.py',) and file!='__init__.py':
ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file))
self.registerHelpTopic(file, ht)
-
-
-
-