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 -N -r1.12 -r1.12.2.1 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-pages.xml 26 Feb 2004 15:28:37 -0000 1.12 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-pages.xml 5 Jul 2004 19:47:36 -0000 1.12.2.1 @@ -15,7 +15,7 @@ Install some API As a workaround for missing content-repository functionality, copy a provided file into the directory for tcl files: - cp /var/lib/aolserver/service0/packages/acs-core-docs/www/files/note-procs.tcl /var/lib/aolserver/service0/packages/myfirstpackage/tcl/ + cp /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/note-procs.tcl /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/tcl/ To make this file take effect, go to the APM and choose "Reload changed" for "MyFirstPackage". @@ -25,7 +25,7 @@ Page Map - + @@ -43,30 +43,30 @@ database-specific SQL. The default page in any directory is index, so we'll build that first, starting with the tcl file: - [service0 postgresql]$ cd /var/lib/aolserver/service0/packages/myfirstpackages/www -[service0 www]$ emacs index.tcl + [$OPENACS_SERVICE_NAME postgresql]$ cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackages/www +[$OPENACS_SERVICE_NAME www]$ emacs index.tcl Paste this into the file. example missing Now index.adp: example missing You can test your work by viewing the page. The index page includes the list page, which we put in /lib instead of /www to designate that it's available for reuse by other packages. - [service0 www]$ mkdir /var/lib/aolserver/service0/packages/myfirstpackage/lib -[service0 www]$ cd /var/lib/aolserver/service0/packages/myfirstpackage/lib -[service0 lib]$ emacs note-list.tcl + [$OPENACS_SERVICE_NAME www]$ mkdir /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/lib +[$OPENACS_SERVICE_NAME www]$ cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/lib +[$OPENACS_SERVICE_NAME lib]$ emacs note-list.tcl example missing -[service0 lib]$ emacs note-list.adp +[$OPENACS_SERVICE_NAME lib]$ emacs note-list.adp example missing Create the add/edit page. If note_id is passed in, it display that note, and can change to edit mode if appropriate. Otherwise, it presents a form for adding notes. - [service0 lib]$ cd /var/lib/aolserver/service0/packages/myfirstpackage/www -[service0 www]$ emacs note-edit.tcl + [$OPENACS_SERVICE_NAME lib]$ cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/www +[$OPENACS_SERVICE_NAME www]$ emacs note-edit.tcl example missing -[service0 www]$ emacs note-edit.adp +[$OPENACS_SERVICE_NAME www]$ emacs note-edit.adp example missing And the delete page. Since it has no UI, there is only a tcl page, and no adp page. -[service0 www]$ emacs note-delete.tcl +[$OPENACS_SERVICE_NAME www]$ emacs note-delete.tcl example missing