Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial.xml,v diff -u -r1.12 -r1.13 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial.xml 21 Apr 2004 09:49:46 -0000 1.12 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial.xml 26 Apr 2004 18:23:13 -0000 1.13 @@ -7,7 +7,7 @@ - Creating a Package + Creating an Application Package by Joel Aufrecht @@ -22,21 +22,16 @@ - Overview - To start developing new code in OpenACS, we build a new - package. A package is a a discrete collection of web - pages, tcl code, and database tables and procedures. A package - with user interface is called an application; a package which provides - functions to other packages and has no direct interface, a - service. A package - can be installed, upgraded, and removed. It communicates with - other packages through an API. This chapter walks you through the - minimum steps to create a useful package, including writing - documentation, setting up database tables and procedures, - writing web pages, debugging, and automatic regression testing. + To start developing new code in OpenACS, we build a new package. A package + is a a discrete collection of web pages, tcl code, and database tables and procedures. + A package with user interface is called an application; + a package which provides functions to other packages and has no direct interface, a + service. A package can be installed, upgraded, and + removed. It communicates with other packages through an API. This chapter walks you through + the minimum steps to create a useful package, including writing documentation, setting up + database tables and procedures, writing web pages, debugging, and automatic regression testing. @@ -45,7 +40,6 @@ around the content repository's limitations, including an incomplete TCL API. So the tutorial is messier than we'd like right now. Code that is temporary hackage is clearly marked. - In this tutorial, we will make an application package for @@ -112,7 +106,7 @@ Click Create a New Package. - Fill in the fields listed below. Tab through the rest. + Fill in the fields listed below. Ignore the rest (and leave the check boxes alone). (Some will change automatically. Don't mess with those.) @@ -127,6 +121,10 @@ Package Plural: My First Package + + Package Type: + Application + Initial Version: 0.1d @@ -146,15 +144,14 @@ files in the package will be within this directory. - Mount the package in the site map + Add an Application Instance to the Server In order to see your work in progress, you must create a - map between the URL space of incoming requests and the package. - You do this by mounting the package in the Site Map. This - creates a link between the incoming URL and an - instance of the package. (More on Site Maps and nodes) - You can have - multiple instances of a package on one site, each with a + map between the URL space of incoming requests and the package application instance. + You do this by adding the application in the main site administration). This + creates a link between the incoming URL requests and an + instance of the application. (More on applications and nodes) + You can have instances of a package on one site, each with a different URL and different permissions, all sharing the same code and tables. This requires that a package be developed package-aware. You'll see how to do that