Source Code Folder

The Source Code folder, residing in the Administration cabinet, contains the Jython code that implements the functionality of the CMS application.

Changes made to the files in the Source Code folder do not take effect immediately upon checkin. You must stop and restart the Astoria services on all ACS servers. Note that much of the functionality of ACS is implemented in jython files in the python subdirectory of your ACS installation, particularly in webformsOperations.py and webformsUtil.py. In order to override the functions in these jython files, you must implement your changes in the following files in the Source Code folder. Note that <appname> stands for the name of your application:
File Description
<appname>Operations.py Defines operation functions that respond to parameters on Webforms requests. By default, this file is empty. If you want to override a function in the webformsOperations.py file or create your own operation function, implement it here, and add the following call to the end of file:
webformsOperations.registerOperation("<operation name>",<operation name>)
For example:
webformsOperations.registerOperation("createRegionDisplay",createRegionDisplay)
<appname>Util.py Defines utility operation functions. Usually these are called from the Operations python file or from the Util jython file itself. If you want to override a function in the webformsUtil.py file or create your own utility function, implement it here, and add the following call to the end of file:
webformsUtil.registerFunction("<operation name>",<operation name>)
For example:
webformsUtil.registerFunction("addApplicationAttributes",addApplicationAttributes)