This is the first time I have tried this, and it is not working. Can anyone explain
why? If I call the proc with one argument, all is well, the second arg is assigned
the default value. When I try to register it with 2 arguments (the first
ns_register_proc line) it blows up everthing after that line in my library.
Argh!
ns_register_proc GET /planning/employees/modify inputposemp 0 1
ns_register_proc GET /planning/maintenance/hr/positionemployees/modify inputposemp 0
ns_register_proc GET /planning/maintenance/hr/positionemployees/new inputposemp 1
proc inputposemp {conn isnew {viewonly 0}} {
...
}
the resulting error is:
[02/Oct/2001:12:30:49][25593.1][-main-] Error:
wrong # of args: should be "ns_register_proc ?-noinherit? method url procName ?args?"
while executing
"ns_register_proc GET /planning/employees/modify inputposemp 0 1"
(file "/usr/local/aolserver/modules/tcl/planning.tcl" line 3603)
Ian A. Harding
Programmer/Analyst II
Tacoma-Pierce County Health Department
(253) 798-3549
mailto: [EMAIL PROTECTED]