'firstname']" in case of result is
dictionary and you need to use python: for some reason.
http://wiki.zope.org/ZPT/RepeatVariable
requires repeat to be called. I used this as previously using tal:replace="result/firstname produced a keyerror as I had no dictionaries set up. The repeat variable sets-up a dictionary automatically...
3) what testquery returns ? I suppose it returns method, because you are
calling this method wit parameter 'id', but I don't think you meant it
in this way.
testquery returns a ZSQL query which works and is tested. The id variable is totally meant as we are passing through a dynamic variable from a ZPT page through to the ZSQL query. At the moment to simplify things! (required..) this variable is fixed to 'IT'.
Thanks for your help