[Zope] subpath in dtml?
jonatan
jonatanpelikan@freemail.hu
Fri, 22 Nov 2002 23:01:26 +0100
hi!
i have a very simple problem: i have a dtml method called reg which
should finalize a registration ... so i would like to have such urls:
http://some.site.com/reg/b6ac3fe9
if reg is a dtml method, then entering this url gives me a not found
error ... ok cool .
lets do a python script, and traverse_subpath. subpath doesnt exist (but
its binded!!) so lets use traverse_subpath ...
but now i am in a python script, i dont want to output html from here, i
just want to check a row in the database!
(outputting html gives me nice < stuff - this is great too!)
i searched for traverse_subpath, and didnt find something of use. just a
traversable dtml document product.
ARGH!
please! i dont want to install products or make some magic with python
scripts interacting with dtml! i started using zope because of its
simplicity, i dont know why isnt there a simple way of doing this??
or perhaps there is but i cannot find it?
i am very desperated :)
all i need is a <dtml-if> checking against the part after 'reg' ..
(b6ac3fe9 here) ... i dont want python scripts for a single if ... why
do you zope developers think that traverse_subpath should be used in a
pythn script only?
how can i achieve the same in dtml?
why isnt http://something/reg/foo/bar working as dtml, but is working as
a python script?
zope is cool, i love smoking too, but sometimes it can be so hairy ...
damn .. :)
thanks,
-jonatan.