[Zope-Checkins] CVS: Zope/lib/python/App - ProductContext.py:1.42.4.1
Gary Poster
gary@zope.com
Fri, 2 May 2003 18:11:34 -0400
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv29807
Modified Files:
Tag: Zope-2_6-branch
ProductContext.py
Log Message:
Don't get interfaces of None.
=== Zope/lib/python/App/ProductContext.py 1.42 => 1.42.4.1 ===
--- Zope/lib/python/App/ProductContext.py:1.42 Tue Aug 20 15:37:52 2002
+++ Zope/lib/python/App/ProductContext.py Fri May 2 18:11:34 2003
@@ -170,7 +170,10 @@
m=pack._m
if interfaces is _marker:
- interfaces = instancesOfObjectImplements(instance_class)
+ if instance_class is None:
+ interfaces = ()
+ else:
+ interfaces = instancesOfObjectImplements(instance_class)
Products.meta_types=Products.meta_types+(
{ 'name': meta_type or instance_class.meta_type,
@@ -283,7 +286,7 @@
if not doInstall():
return
-
+
help=self.getProductHelp()
path=os.path.join(Globals.package_home(self.__pack.__dict__),
directory)