RE: [Zope-dev] Re: DTML Zclass ID bug - HELP!
You need to add the following setName call to the constructor... I'm not sure whether this is a solution, or a hack. <!--#with "hta.createInObjectManager(REQUEST['id'], REQUEST)"--> <dtml-call "setName(REQUEST['id'])"> <!--#/with--> -----Original Message----- Did anyone solve the problem describe by Anthony below ? I'd really like to know because it sounds suspiciously like one of my own ZClass ailments: I can't access a ZClass instance ID and I can't display its value on a property sheet. Thanks. Alexandre At 13:00 17/10/1999 -0700, you wrote:
I've run into a really annoying bug and was wondering if it is fixed in the CVS version (I don't have direct internet access to check).
Create a new Product containing a Zclass subclassing from the DTML Document or Method. Add a Python or DTML Method which does:
This document is <dtml-var id>
Then, add an instance of this Zclass. When you VIEW it you get:
This document is <cstring ...>
AND when you edit it the ID is empty. All references to the ID and related internal variables return CSTRING or cause tracebacks. How do i get the REAL id?
(snip)
participants (1)
-
Toby Dickenson