Forum OpenACS Development: procedures need to be compiled?

Collapse
Posted by Min Chen on

I've made some changes in template::util::date::get_property
 procedure defined in 

/var/lib/aolserver/servers/openacs4/packages/acs-templating/tcl/date-procs.tcl

But nothing seems to happen.  I even changed the file name to see if
OpenACS looks for the procedure in that file during runtime. There
should be an error if it does because the date-procs.tcl does not
exist.  But I got no errors in the application that uses date widgets
defined in date-procs.tcl. 

What should I do so that the changes I made take effect?  Thanks!

Collapse
Posted by Vinod Kurup on
Files in /tcl directories and all .xql files get sourced only at AOLserver startup, unless you specifically ask the APM to watch them. So you need to do 1 of 2 things:

1) Restart AOLServer

OR

2) Go to the Package Manager (/acs-admin/apm). Click on Services. Scroll down to ACS Templating and click on the file-count. Scroll down to the file(s) that you want to watch and click on 'watch'.

Collapse
Posted by Min Chen on
Thanks! It worked! I forgot to restart the service.. duh.. :P