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
......@@ -234,8 +234,17 @@ class ProductContext:
if hasattr(base_class, 'meta_type'): meta_type=base_class.meta_type
else: meta_type=base_class.__name__
key="%s/%s" % (base_class.__module__, base_class.__name__)
Products.meta_class_info[key]=meta_type
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]
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