Index: openacs-4/packages/acs-templating/www/doc/demo/list7/delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/list7/delete.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/demo/list7/delete.tcl 12 Feb 2006 00:42:42 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/demo/list7/delete.tcl 13 Feb 2006 12:58:21 -0000 1.2 @@ -6,13 +6,16 @@ @creation-date 2000-10-23 @cvs-id $Id$ } { - note_id:integer,notnull,multiple + template_demo_note_id:integer,notnull,multiple } -foreach note_id $note_id { - ad_require_permission $note_id delete +foreach template_demo_note_id $template_demo_note_id { + ad_require_permission $template_demo_note_id delete - package_exec_plsql -var_list [list [list note_id $note_id]] note del + package_exec_plsql \ + -var_list [list [list note_id $note_id]] \ + template_demo_note \ + del } ad_returnredirect "./" Index: openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl 13 Feb 2006 12:37:53 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl 13 Feb 2006 13:05:50 -0000 1.2 @@ -106,10 +106,23 @@ } -after_submit { - # We've successfully processed the submission, send the user back to the index page. + # We've successfully processed the submission. + # Clear the pagination cache. + cache flush notes* + + # send the user back to the index page + ad_returnredirect "./" + # NOTE! guess what, we wouldn't be done here; there is a problem: + # notice that when you add a note when you have filters active, + # it doesn't remember your filters when you come back from editing. + # + # we've decided this is beyond the scope of this tutorial and you + # can learn more by studying the function export_vars (which would + # be applied to the filter variables) + # ad_returnredirect returns after redirecting the user, so abort the script rather # than fall through to the display code. Failure to abort the script will burden # your server with needless template processing, though the user won't notice due to Index: openacs-4/packages/acs-templating/www/doc/demo/list8/delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/list8/delete.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/demo/list8/delete.tcl 13 Feb 2006 12:37:53 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/demo/list8/delete.tcl 13 Feb 2006 12:56:51 -0000 1.2 @@ -6,13 +6,16 @@ @creation-date 2000-10-23 @cvs-id $Id$ } { - note_id:integer,notnull,multiple + template_demo_note_id:integer,notnull,multiple } -foreach note_id $note_id { - ad_require_permission $note_id delete +foreach template_demo_note_id $template_demo_note_id { + ad_require_permission $template_demo_note_id delete - package_exec_plsql -var_list [list [list note_id $note_id]] note del + package_exec_plsql \ + -var_list [list [list note_id $note_id]] \ + template_demo_note \ + del } ad_returnredirect "./"