11 Feb
2001
11 Feb
'01
7:57 p.m.
Confused by acquisition again (I think). I have a ZSQL that gets the next value from a postgres sequence - it has no arguments and the following body - name is "next_rid": select nextval('reservation_id') I then have a DTML method that returns just the integer result - name is "get_rid": <dtml-return expr="next_rid()[0]['nextval']"> Both of these work fine, and I can put "<dtml-var get_rid>" in another DTML method and it works fine. What does not work is: <dtml-var expr="get_rid()"> Calling from a expression give me a NameError for next_rid. Help - what am I missing. Martin -- Martin Andrews, mandrews@netgenics.com