Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-pages.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-pages.xml,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-pages.xml 19 Apr 2003 20:42:15 -0000 1.1.2.3 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-pages.xml 13 May 2003 12:45:37 -0000 1.1.2.4 @@ -16,7 +16,8 @@ index, so we'll build that first, starting with the tcl file: - [service0@yourserver samplenote]$ cd /web/service0/packages/samplenote/www + [service0@yourserver samplenote]$ mkdir /web/service0/packages/samplenote/www +[service0@yourserver samplenote]$ cd /web/service0/packages/samplenote/www [service0@yourserver www]$ emacs index.tcl Paste this into the file. ad_page_contract { @@ -127,7 +128,7 @@ <p><a href="note-edit">Add a note</a></p> - Add files to APM + Making the APM load your files Before we can test these files, we have to notify the package manager that they exist. (More precisely, the tcl and adp will work fine as-is, but the xql file will not be @@ -140,22 +141,28 @@ Click Manage file information - Click Scan the packages/samplenote directory for additional files in thispackage + + Check the values in the file type column for your files. A + question mark means the APM doesn't recognize the file + type and probably means you have mistyped a filename. + - Click add checked files + + + + At the bottom of the file list page - click on the + watch all files link. + Unlike adp and tcl pages, xql pages get cached. (And new + xql files don't get loaded when they're watched or the + server is restarted.) Watching an xql file causes the APM + to load the contents of the XQL into memory so that it can + be used, and to reload it whenever the file is changed. + The watch will last until the server is restarted. + - On the list of files, on the - index.xql line, click - watch. Unlike adp and tcl - pages, xql pages get cached. (And new xql files don't get - loaded when they're added.) Watching an xql file causes the APM - to load the contents of the XQL into memory so that it can be - used, and to reload it whenever the file is changed. The - watch will last until the server is restarted. - - Now that the pages are in the APM, check to make sure that the self-documenting code is working. + Now that the APM is aware of your files, check to make sure that the self-documenting code is working. Browse to http://yourserver.test:8000/api-doc/