[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Extending Zope
nobody@nowhere.com
nobody@nowhere.com
Wed, 21 Aug 2002 09:09:36 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/CustomZopeObjects.stx#2-42
---------------
Now click *Add*. This will take you back to the *ZooExhibit* Product
and you will see five new objects, as shown in [12-4].
% Anonymous User - Aug. 21, 2002 9:09 am:
I would like to build a ZClass that inherits from class SessionDataManager of the Session product, but no
such class shows in the base classes list. Are there any techniques to make it became a base class extensible
by ZClasses?
The strange thing is that further on an __init__.py example shows how to register a class so to make it
available to ZClasses for inheriting, and the __init__.py file of the Session product follows such
registration directives!
To be honest, it calls context.registerClass(), not context.registerBaseClass().
Maybe that's the point? Can I overcome this editing __init__.py and changing
context.registerClass() to context.registerBaseClass()?