[Zope] GET vs. POST
12 May 2003 09:38:48 -0600
"David Hassalevris" <email@example.com> writes:
> A good while ago Jim Penny posted a message that described a really
> interesting coding
> construct. One of it benefits is that the URL always stays the same.
> I never thanked Jim for posting the original msg but I've put this
> technique to good use!
> The idea is the you turn your INDEX_HTML into something of an infinite loop.
> If is filled with statements like:
> <DTML-IF current_state = 'MAIN' and action = 'VENDORS'>
> <dtml-var vendorsForm>
> <DTML-IF current_state = 'MAIN' and action = 'EMPLOYEES'>
> <dtml-var employeesForm>
> Anyway, you can find original article at
I personally find that this sort of stuff is almost always clearer
when it is expressed in Python instead of DTML. Most of my index_html
files are actually Pythonscripts that look something like this:
req = container.REQUEST