+-------[ Florian Schuler ]---------------------- | Greeting, | | I´m learning Zope/python at the moment. I tried something with databases | and it seemed to work. | I created a SQL-Method with select name from person where <dtml .... ( | it doesn´t matter) and call it with | | <dtml-call "REQUEST.set('user', | getuserbyusername(username=username,password=password))"> | | but now if I make a <dtml-var user> I get an mysteric response. I know I | know the GURUS of you will laugh but you know, | without trying you can´t learn anything :-)) <dtml-in "getuserbyusername(username=username, password=password)"> <dtml-call "REQUEST.set('user', vorname + ' ' + name)"> </dtml-in> ZSQL methods return a Result type, generally you need to iterate over the return from your method, and access the columns by name. It is possible to circumvent these procedures, but, it's not recommended. -- Totally Holistic Enterprises Internet| | Andrew Milton The Internet (Aust) Pty Ltd | | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|