[Zope-CMF] Accessing methods of ZClass based portal content.
Gilles Lenfant
gilles@objectis.net
Fri, 8 Feb 2002 23:00:59 +0100
Hi,
I have built some portal_types based on ZClasses (subclassing
PortalContent).
I mapped the usual actions (view + edit) to some methods of the ZClass.
Till now it's OK for adding/editing those objects.
But I always got a KeyError / ErrorValue : mymethod when trying to get the
result of any method defined in the ZClass.
In example :
<dtml-with myobject>
<dtml-var datafrompropertysheet> --> OK
<dtml-var DTMLmethodfromZCalss> --> KeyError...
</dtml-with>
I can't understand, the DocumentFinder shows the methods defined in the base
ZClass when browsing the portal object with ZMI.
Accessing data from any propertysheet of the ZClass works perfectly.
Did I miss something ?
Thanks in advance for any hint.
--Gilles
PS : Having ZClasses for CMF defined directly in the portal_types would be
so nice in the future CMF (1.??) !