Commit 0be58301 authored by Gary Poster's avatar Gary Poster

Don't try to get interfaces of None.

parent c5341aeb
...@@ -170,7 +170,10 @@ class ProductContext: ...@@ -170,7 +170,10 @@ class ProductContext:
m=pack._m m=pack._m
if interfaces is _marker: 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+( Products.meta_types=Products.meta_types+(
{ 'name': meta_type or instance_class.meta_type, { 'name': meta_type or instance_class.meta_type,
...@@ -283,7 +286,7 @@ class ProductContext: ...@@ -283,7 +286,7 @@ class ProductContext:
if not doInstall(): if not doInstall():
return return
help=self.getProductHelp() help=self.getProductHelp()
path=os.path.join(Globals.package_home(self.__pack.__dict__), path=os.path.join(Globals.package_home(self.__pack.__dict__),
directory) directory)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment