Index: openacs-4/packages/photo-album/www/doc/design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/www/doc/design.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/photo-album/www/doc/design.html 10 Jun 2003 10:07:46 -0000 1.1 +++ openacs-4/packages/photo-album/www/doc/design.html 26 May 2017 18:05:37 -0000 1.2 @@ -362,7 +362,7 @@ relationship between the two content_items. This decision was made so the the number of image sizes per photo could be changed with minor code revision and no datamodel changes. This flexibility comes at a - cost, the queries to retreive and serve the appropriate version of + cost, the queries to retrieve and serve the appropriate version of a photo need to join in several tables to do so. There also is not an easy way to store the relation between different versions of the photo-attribute info such as caption and the versions of the binaries.

pa_image.delete deletes a pa_image and all revisions - Also schedules the binary files for deletion from the file-sytem.

    
@@ -711,7 +711,7 @@
 CLASS="computeroutput"
 >pa_make_file_name {-assert:boolean} {-ext ""} id 
-	  Constructs a filename for an image based on id and extention.
+	  Constructs a filename for an image based on id and extension.
           Files are created into a 3 tier directory structure: year/xx/zz/ for a photo_id 1234xxzz.jpg
 	  Same file would return year/xx/zz/1234xxzz.jpg.
 	  If -assert specified, proc creates directory and any parent directories if necessary
@@ -910,7 +910,7 @@
 >

The root folder for each package instance is stored in pa_root_folder_package_map. All folders, albums, photos, and images within a package instance are - decendants of the root folder for that package.

Image files scheduled for deletion are stored in pa_files_to_delete. A nightly web-server process deletes the files in this table and then removes