Hi Justin, --On Dienstag, 27. Februar 2001 16:12 -0500 Justin Stockton <JStockton@DevIS.com> wrote:
I have python method that is passed a list of country abbreviations. I want to be able to loop through this list and send each item to a ZSQL, but for some reason I keep getting Name and Key Errors.
Here is what I have so far:
-- <dtml-in geoList> <dtml-var "SQL.getSiteID(geoName=_[_['sequence-item']])"> </dtml-in>
Sure. Try: <dtml-in geoList> <dtml-var "SQL.getSiteID(geoName=_['sequence-item'])"> </dtml-in> instead :) (or get my replacement for the in-tag and use geoName=sequence_item ;) SCNR ;)) Your way above you are looking up the key with the name 'sequence-item' wich is then TC and then use this key again on the namespace, but TC does not refer to anything. Hence the error. Regards Tino Wildenhain