[Zope] [Fwd: Re: [Zope] dtml-in loop to capture records]

Paul Zwarts paul.zwarts@oratrix.com
Thu, 12 Oct 2000 18:38:56 +0200


Me again,

To further explain my dilemna, I just noticed that using the in ITEM
loop doesnt
seem to work if the dtml-call statement has an extra parameter. I had

<dtml-call "verifyLog(mdate=mdate)">
publish..
<dtml-in item>
...
...
</dtml-in>

Then use as in other working forms:

<dtml-call verifyLog>
publish..
<dtml-in item>
...
...
</dtml-in>


Mdate is the primary key, again. This gave me the ITEM Bad Request
error.
Now, if I remove the mdate call, and remove the condition in the ZSQL
method, i can at least now get an error:

  File /var/Zope-201/lib/python/DocumentTemplate/DT_String.py, line 502,
in
__call__
    (Object: <string>)
  File /var/Zope-201/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
    (Object: item)
  File /var/Zope-201/lib/python/Shared/DC/ZRDB/sqlvar.py, line 168, in
render
    (Object: vswitch)
Missing Input: (see above)

So, the item is rendering. The variable named item.vswitch is not... nor
is
mdate which had to be named as an item.mdate instead of being passed in
the
dtml-call statement as an argument.

In forms where this works, i simply call the method and the item renders
everything in properly. Now I can do none it seems. One other note is
that I
var in the form that the input item.fieldname parts are contained, so
the
calling method to render item is not the same document as the item
components.

Oi,

--
Paz
Oratrix Development BV
http://www.oratrix.com
GRiNS SMIL Editor
-