18 Nov
2002
18 Nov
'02
2:41 p.m.
Hello Jorg, Monday, November 18, 2002, 2:35:54 PM, you wrote:
I have an external method(python): def makePhoneList(searchString, *sortBy): Then I want to be able to call it in a dtml-document like so (wrong, I know, but to illustrate what I am looing for). <dtml-in expr="makePhoneList(searchString='foo', '<dtml-var sortBy1>', '<dtml-var sortBy2>')"> The sortBy1 and sortBy2 are variables in the DTML-document.
you cannot nest dtml-tags: <dtml-in expr="makePhoneList('foo', [sortBy1, sortBy2])"> could work , depending on what you are trying to accomplish.. inside expr="" you do simple python, not DTML :) -- Geir Bækholt geir@funcom.com Tools/HCI-developer Tools/Billing - Product Operations Funcom Oslo