return another Zope object in a dtml-method
23 Nov
23 Nov
4:38 p.m.
New subject: [Zope] return another Zope object in a dtml-method
Andrew Thompson wrote:
Dear Zope world...
I have a dtml-method which adds an object, which I then wish to display.
I can display a link to my object with
<a href=objects/newObject>Jump to object</a> (where objects is a folder)
but I would rather forgo the link and take the user straight to the object. Sadly,
<dtml-var objects/newObject> doesn't seem to work -- I get an unresolvable object, which does exist.
So what am I doing wrong ?
AFT
Hi Andrew Maybe you can initiate a new request _after_ adding your object. Does it work, if you put at the _end_ of your method something like: <dtml-call "REQUEST.RESPONSE.redirect('objects/newObject)"> --- Flynt
8900
Age (days ago)
8900
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrew Thompson -
flynt