Help: dtml-var expr -> DTML method -> ZSQL method
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
9185
Age (days ago)
9185
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Andrews