In Python:
 
def Funzione1():
    class Trecord:
        NOME = ''
    result = []
    r = Trecord()
    r.NOME = 10 #First element
    result.append(r)
    r.NOME = 20 #Second element
    result.append(r)
    return result
 
In Zope I use this function:
 
<!--#with "_(qry=Funzione1())"-->
  <!--#in qry-->
    <dtml-var NOME><BR>
  <!--#/in-->
<!--#/with-->
 
Zope don't work and ask me user name and password.
 
If instead write this:
 
<!--#with "_(qry=Funzione1())"-->
  <!--#in qry-->
    test<BR>
  <!--#/in-->
<!--#/with-->
 
This work and diplay correctly: test test.
 
This problem there is only ZOPE 2.4.0, the precedent version is run OK.
 
Can you help ME ?

Reply via email to