Index: openacs-4/contrib/packages/simulation/lib/cases-admin.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/cases-admin.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/contrib/packages/simulation/lib/cases-admin.tcl 8 Jan 2004 14:24:44 -0000 1.2 +++ openacs-4/contrib/packages/simulation/lib/cases-admin.tcl 12 Jan 2004 15:52:44 -0000 1.3 @@ -10,7 +10,7 @@ } } -# TODO: add link to simplay/case for each case +# TODO: add link to simplay/case for each case - LARS: We can't unless we list all the roles as well, 'cause simplay/case requires role_id set package_id [ad_conn package_id] set user_id [auth::get_user_id] Index: openacs-4/contrib/packages/simulation/lib/cases.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/cases.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/contrib/packages/simulation/lib/cases.tcl 12 Jan 2004 13:43:14 -0000 1.9 +++ openacs-4/contrib/packages/simulation/lib/cases.tcl 12 Jan 2004 15:52:44 -0000 1.10 @@ -10,9 +10,6 @@ } } -# TODO: add link to simplay/case for each case -# TODO: hide case if not admin - set package_id [ad_conn package_id] set elements { Index: openacs-4/contrib/packages/simulation/lib/object-display.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/object-display.adp,v diff -u -r1.6 -r1.7 --- openacs-4/contrib/packages/simulation/lib/object-display.adp 6 Jan 2004 13:05:47 -0000 1.6 +++ openacs-4/contrib/packages/simulation/lib/object-display.adp 12 Jan 2004 15:52:44 -0000 1.7 @@ -12,5 +12,3 @@ Edit
-TODO: edit_url shouldn't show up if user doesn't have permission to - edit object \ No newline at end of file Index: openacs-4/contrib/packages/simulation/lib/sim-template-tasks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/sim-template-tasks.tcl,v diff -u -r1.29 -r1.30 --- openacs-4/contrib/packages/simulation/lib/sim-template-tasks.tcl 12 Jan 2004 13:43:14 -0000 1.29 +++ openacs-4/contrib/packages/simulation/lib/sim-template-tasks.tcl 12 Jan 2004 15:52:44 -0000 1.30 @@ -33,8 +33,6 @@ #------------------------------------------------------------- # tasks list #------------------------------------------------------------- -# TODO: missing: discription, type -# how is type going to work? open question pending prototyping if { $display_mode == "edit"} { set list_actions [list "Add a Task" [export_vars -base task-edit {workflow_id} ] {}] Index: openacs-4/contrib/packages/simulation/lib/sim-templates.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/sim-templates.tcl,v diff -u -r1.15 -r1.16 --- openacs-4/contrib/packages/simulation/lib/sim-templates.tcl 9 Jan 2004 14:40:03 -0000 1.15 +++ openacs-4/contrib/packages/simulation/lib/sim-templates.tcl 12 Jan 2004 15:52:44 -0000 1.16 @@ -5,10 +5,6 @@ @creation-date 2003-11-12 @cvs-id $Id$ } { - display_mode { - allowed_values {edit display} - default_value display - } size { allowed_values {short long} default_value long @@ -22,8 +18,6 @@ set actions [list "Add a template" $add_url {} \ "Import a template" "[apm_package_url_from_id $package_id]simbuild/template-load" {}] -# TODO: make this include honor the display_mode parameter - switch $size { short { set elements { @@ -115,7 +109,7 @@ # a list of templates # ###################################################################### -# TODO: limit this to see only your own templates +# TODO (.25h): limit this to see only your own templates # If you are the admin, show all templates in long mode db_multirow -extend { edit_url view_url delete_url clone_url edit_p } sim_templates select_sim_templates " @@ -148,14 +142,14 @@ " { set description [ad_html_text_convert -from $description_mime_type -maxlen 200 -- $description] - set edit_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" {workflow_id} ] + set edit_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" { workflow_id }] - set view_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" {workflow_id} ] + set view_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" { workflow_id }] - set clone_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-clone" {workflow_id} ] + set clone_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-clone" { workflow_id }] set edit_p [permission::write_permission_p -object_id $workflow_id] - set delete_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-delete" {workflow_id} ] + set delete_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-delete" { workflow_id }] } Index: openacs-4/contrib/packages/simulation/lib/simulations-available.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/simulations-available.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/contrib/packages/simulation/lib/simulations-available.tcl 8 Jan 2004 14:24:44 -0000 1.2 +++ openacs-4/contrib/packages/simulation/lib/simulations-available.tcl 12 Jan 2004 15:52:44 -0000 1.3 @@ -12,7 +12,7 @@ set package_id [ad_conn package_id] - # TODO: if invited instead of open, say "accept invitation to enroll" +# TODO (.25h): if invited instead of open, say "accept invitation to enroll" set elements { pretty_name { @@ -40,8 +40,8 @@ -no_data "No simulations available to self-enroll." \ -elements $elements -# TODO: verify that the first half of this query returns the sims to which the user is invited (data model may have changed since this was coded) -# TODO: exclude simulations for which the user is currently enrolled +# TODO (.25h): verify that the first half of this query returns the sims to which the user is invited (data model may have changed since this was coded) +# TODO (.25h): exclude simulations for which the user is currently enrolled db_multirow -extend {enroll_url} avail_sims select_avail_sims " select w.workflow_id, @@ -67,4 +67,4 @@ set enroll_url [export_vars -base "[apm_package_url_from_id $package_id]simplay/enroll" {workflow_id} ] set description [ad_html_text_convert -from $description_mime_type -maxlen 200 -- $description] -} \ No newline at end of file +} Index: openacs-4/contrib/packages/simulation/lib/tasks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/tasks.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/contrib/packages/simulation/lib/tasks.tcl 12 Jan 2004 15:14:36 -0000 1.9 +++ openacs-4/contrib/packages/simulation/lib/tasks.tcl 12 Jan 2004 15:52:44 -0000 1.10 @@ -66,7 +66,6 @@ -no_data "You don't have any tasks." \ -elements $elements -# TODO: Honor role_id db_multirow -extend { task_url } tasks select_tasks " select wcea.enabled_action_id, wa.pretty_name as name, Index: openacs-4/contrib/packages/simulation/lib/yellow-pages.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/yellow-pages.adp,v diff -u -r1.1 -r1.2 --- openacs-4/contrib/packages/simulation/lib/yellow-pages.adp 2 Dec 2003 17:29:48 -0000 1.1 +++ openacs-4/contrib/packages/simulation/lib/yellow-pages.adp 12 Jan 2004 15:52:44 -0000 1.2 @@ -1,2 +1,2 @@
TODO: edit_url shouldn't show up if user doesn't have permission to - edit object \ No newline at end of file Index: openacs-4/packages/simulation/lib/sim-template-tasks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/sim-template-tasks.tcl,v diff -u -r1.29 -r1.30 --- openacs-4/packages/simulation/lib/sim-template-tasks.tcl 12 Jan 2004 13:43:14 -0000 1.29 +++ openacs-4/packages/simulation/lib/sim-template-tasks.tcl 12 Jan 2004 15:52:44 -0000 1.30 @@ -33,8 +33,6 @@ #------------------------------------------------------------- # tasks list #------------------------------------------------------------- -# TODO: missing: discription, type -# how is type going to work? open question pending prototyping if { $display_mode == "edit"} { set list_actions [list "Add a Task" [export_vars -base task-edit {workflow_id} ] {}] Index: openacs-4/packages/simulation/lib/sim-templates.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/sim-templates.tcl,v diff -u -r1.15 -r1.16 --- openacs-4/packages/simulation/lib/sim-templates.tcl 9 Jan 2004 14:40:03 -0000 1.15 +++ openacs-4/packages/simulation/lib/sim-templates.tcl 12 Jan 2004 15:52:44 -0000 1.16 @@ -5,10 +5,6 @@ @creation-date 2003-11-12 @cvs-id $Id$ } { - display_mode { - allowed_values {edit display} - default_value display - } size { allowed_values {short long} default_value long @@ -22,8 +18,6 @@ set actions [list "Add a template" $add_url {} \ "Import a template" "[apm_package_url_from_id $package_id]simbuild/template-load" {}] -# TODO: make this include honor the display_mode parameter - switch $size { short { set elements { @@ -115,7 +109,7 @@ # a list of templates # ###################################################################### -# TODO: limit this to see only your own templates +# TODO (.25h): limit this to see only your own templates # If you are the admin, show all templates in long mode db_multirow -extend { edit_url view_url delete_url clone_url edit_p } sim_templates select_sim_templates " @@ -148,14 +142,14 @@ " { set description [ad_html_text_convert -from $description_mime_type -maxlen 200 -- $description] - set edit_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" {workflow_id} ] + set edit_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" { workflow_id }] - set view_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" {workflow_id} ] + set view_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-edit" { workflow_id }] - set clone_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-clone" {workflow_id} ] + set clone_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-clone" { workflow_id }] set edit_p [permission::write_permission_p -object_id $workflow_id] - set delete_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-delete" {workflow_id} ] + set delete_url [export_vars -base "[apm_package_url_from_id $package_id]simbuild/template-delete" { workflow_id }] } Index: openacs-4/packages/simulation/lib/simulations-available.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/simulations-available.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/simulation/lib/simulations-available.tcl 8 Jan 2004 14:24:44 -0000 1.2 +++ openacs-4/packages/simulation/lib/simulations-available.tcl 12 Jan 2004 15:52:44 -0000 1.3 @@ -12,7 +12,7 @@ set package_id [ad_conn package_id] - # TODO: if invited instead of open, say "accept invitation to enroll" +# TODO (.25h): if invited instead of open, say "accept invitation to enroll" set elements { pretty_name { @@ -40,8 +40,8 @@ -no_data "No simulations available to self-enroll." \ -elements $elements -# TODO: verify that the first half of this query returns the sims to which the user is invited (data model may have changed since this was coded) -# TODO: exclude simulations for which the user is currently enrolled +# TODO (.25h): verify that the first half of this query returns the sims to which the user is invited (data model may have changed since this was coded) +# TODO (.25h): exclude simulations for which the user is currently enrolled db_multirow -extend {enroll_url} avail_sims select_avail_sims " select w.workflow_id, @@ -67,4 +67,4 @@ set enroll_url [export_vars -base "[apm_package_url_from_id $package_id]simplay/enroll" {workflow_id} ] set description [ad_html_text_convert -from $description_mime_type -maxlen 200 -- $description] -} \ No newline at end of file +} Index: openacs-4/packages/simulation/lib/tasks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/tasks.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/simulation/lib/tasks.tcl 12 Jan 2004 15:14:36 -0000 1.9 +++ openacs-4/packages/simulation/lib/tasks.tcl 12 Jan 2004 15:52:44 -0000 1.10 @@ -66,7 +66,6 @@ -no_data "You don't have any tasks." \ -elements $elements -# TODO: Honor role_id db_multirow -extend { task_url } tasks select_tasks " select wcea.enabled_action_id, wa.pretty_name as name, Index: openacs-4/packages/simulation/lib/yellow-pages.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/yellow-pages.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/simulation/lib/yellow-pages.adp 2 Dec 2003 17:29:48 -0000 1.1 +++ openacs-4/packages/simulation/lib/yellow-pages.adp 12 Jan 2004 15:52:44 -0000 1.2 @@ -1,2 +1,2 @@