Forum OpenACS Development: Re: Error updating parameters with xotcl-core installed

Collapse
Posted by Dave Bauer on
Ok I tracked this down.

The XO parameter stuff is getting confused if you add a new parameter to a package type in the APM, and try to set it in a package instance before restarting. After restarting it works fine.

Collapse
Posted by Tom Jackson on

This is probably still a bug, or a difficult to understand "feature" of the xotcl object initialization.

The variable $parameter_obj gets set to the initial value of "". It should probably remain unset until explicitly defined, or the error should somehow expose which parameter object was not found.

For instance, you could use:

if {[info proc $parameter_obj] ne "$parameter_obj"} {

   return -code error "Parameter object proc dne, maybe restart server."

} 

$parameter_obj ...