Commit 07eb1db3 authored by Jim Fulton's avatar Jim Fulton

Changed registration of Python ZClass base classes to include the

product name in registration info.
parent fb1b39c9
......@@ -233,9 +233,18 @@ class ProductContext:
if meta_type is None:
if hasattr(base_class, 'meta_type'): meta_type=base_class.meta_type
else: meta_type=base_class.__name__
module=base_class.__module__
name=base_class.__name__
key="%s/%s" % (module, name)
if module[:9]=='Products.': module=string.split(module,'.')[1]
else: module=string.split(module,'.')[0]
key="%s/%s" % (base_class.__module__, base_class.__name__)
Products.meta_class_info[key]=meta_type
info="%s: %s" % (module, name)
Products.meta_class_info[key]=info # meta_type
Products.meta_classes[key]=Z
......
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