Forum OpenACS Q&A: Re: namespace procs and the query dispatcher

Collapse
Posted by Dan Wickstrom on
I know ad_proc was modified at one point early on to handle both cases, so unless the changes got backed out somehow, I don't think that's the problem.  I know the templating system and cms have namespaces declared with the second form, and it's not a problem.
Collapse
Posted by Roberto Mello on
No, the templating system and CMS do not have procs declared like the second form. The problem was in ad_proc not handling the proc declaration with leading "::", not in the namespace declaration.

The leading :: tell Tcl that that proc goes into the global namespace. Templating and CMS do not have the leading ::

ad_proc -public template::form { command args } {

So the problem wasn't happening. The leading :: is not required in most cases (there's no occurrence of that form anywhere in the toolkit) but not allowing for it is broken.

That is fixed now.

-Roberto