Forum OpenACS Development: Re: Intrigued by a Tcl variable scope
5: Re: Intrigued by a Tcl variable scope (response to 4)
Posted by Iuri Sampaio on 08/29/18 02:50 PM
Instead of list::create, wouldn't the best place be in the db_multirow?
Or even, the switch pass_properties could be in both. Couldn't it?
6: Re: Intrigued by a Tcl variable scope (response to 5)
Posted by Gustaf Neumann on 08/29/18 04:51 PM
The flag is especially for variables used in the list template, which are NOT part of the multirow (or db_multirow). The template::list iterates of the multirow tuples and needs the information, what other variables have to be provided in the "display_template".
Without looking at the details, it might be possible to modify the implementation of "display_template" to include all global variables, but - maybe for a good reason - this was not done at the first place.