-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Too many close braces on the second proc.
Simon Millward
CEO - OpenMSG Limited
www.open-msg.com
(Public Key at www.keyserver.net)
- -----Original Message-----
From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On
Behalf
Of Gaizka Villate
Sent: 31 May 2001 14:10
To: [EMAIL PROTECTED]
Subject: [AOLSERVER] Procs with 2+ args in ns_register_proc
Is it possible have a proc with more than one argument registered
with
ns_register_proc ?
In the documentation it says it's possible:
(at http://www.aolserver.com/docs/tcldev/tapi-104.htm#3937 ):
ns_register_proc GET /twoargs twoargs fnord
ns_register_proc GET /threeargs threeargs fnord fjord
proc twoargs { conn context { greeble bork } } {
...
} ;
proc threeargs { conn context {greeble bork } { hoover quark } }
{
...
} ;
But when i try it in a session with nscp:
nscp 1> proc threeargs { conn context {greeble bork } { hoover quark}
} } {
return 0
}
b2civi-dev:nscp 2> ns_register_proc GET /threeargs threeargs fnord
fjord
wrong # of args: should be "ns_register_proc ?-noinherit? method url
procName ? args?"
b2civi-dev:nscp 3>
Is there a way to do it?
I've tried passing a list (ns_register_proc GET /threeargs [list
fnord
fjord]) but it hasn't worked.
Thanks a lot for your attention.
- -- Gaizka Villate
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBOxZF5rkY0ZOMgcS2EQJotACgioQvdE/sE+q4DW5EJa9vkKHHJfIAoKK4
lP3WLJbRorzACvOYv8IMOySD
=t4C7
-----END PGP SIGNATURE-----