Index: openacs-4/packages/assessment/www/asm-admin/catalog-item-add.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/catalog-item-add.tcl,v
diff -u -r1.5 -r1.5.6.1
--- openacs-4/packages/assessment/www/asm-admin/catalog-item-add.tcl 25 Apr 2005 13:36:20 -0000 1.5
+++ openacs-4/packages/assessment/www/asm-admin/catalog-item-add.tcl 5 Feb 2007 14:15:04 -0000 1.5.6.1
@@ -8,7 +8,7 @@
@author timo@timohentschel.de
@date 2004-12-08
- @cvs-id $Id:
+ @cvs-id $Id:
} {
assessment_id:integer
section_id:integer
@@ -56,7 +56,10 @@
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
set item_count [llength $item_ids]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
db_dml move_down_items {}
foreach as_item_id $item_ids {
Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl,v
diff -u -r1.6 -r1.6.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl 12 Jun 2006 02:49:51 -0000 1.6
+++ openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl 5 Feb 2007 14:15:04 -0000 1.6.2.1
@@ -41,7 +41,10 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_cb"} {
@@ -51,7 +54,7 @@
-choice_label_orientation $label_orientation \
-sort_order_type $order_type \
-item_answer_alignment $answer_alignment]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
@@ -130,7 +133,10 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_cb"} {
@@ -140,7 +146,7 @@
-choice_label_orientation $label_orientation \
-sort_order_type $order_type \
-item_answer_alignment $answer_alignment]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-f.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-f.tcl,v
diff -u -r1.2 -r1.2.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-add-display-f.tcl 12 Jun 2006 02:49:51 -0000 1.2
+++ openacs-4/packages/assessment/www/asm-admin/item-add-display-f.tcl 5 Feb 2007 14:15:04 -0000 1.2.2.1
@@ -51,15 +51,18 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_f"} {
set as_item_display_id [as::item_display_f::new \
-html_display_options $html_options \
-abs_size $abs_size \
-box_orientation $box_orientation]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-rb.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-rb.tcl,v
diff -u -r1.6 -r1.6.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-add-display-rb.tcl 12 Jun 2006 02:49:51 -0000 1.6
+++ openacs-4/packages/assessment/www/asm-admin/item-add-display-rb.tcl 5 Feb 2007 14:15:04 -0000 1.6.2.1
@@ -42,7 +42,10 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_rb"} {
@@ -52,7 +55,7 @@
-choice_label_orientation $label_orientation \
-sort_order_type $order_type \
-item_answer_alignment $answer_alignment]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
@@ -127,7 +130,10 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_rb"} {
@@ -137,7 +143,7 @@
-choice_label_orientation $label_orientation \
-sort_order_type $order_type \
-item_answer_alignment $answer_alignment]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-sa.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-sa.tcl,v
diff -u -r1.4 -r1.4.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-add-display-sa.tcl 12 Jun 2006 02:49:51 -0000 1.4
+++ openacs-4/packages/assessment/www/asm-admin/item-add-display-sa.tcl 5 Feb 2007 14:15:04 -0000 1.4.2.1
@@ -51,15 +51,18 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_sa"} {
set as_item_display_id [as::item_display_sa::new \
-html_display_options $html_options \
-abs_size $abs_size \
-box_orientation $box_orientation]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-sb.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-sb.tcl,v
diff -u -r1.7 -r1.7.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-add-display-sb.tcl 12 Jun 2006 03:02:38 -0000 1.7
+++ openacs-4/packages/assessment/www/asm-admin/item-add-display-sb.tcl 5 Feb 2007 14:15:04 -0000 1.7.2.1
@@ -43,7 +43,10 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_sb"} {
@@ -53,7 +56,7 @@
-choice_label_orientation $label_orientation \
-sort_order_type $order_type \
-item_answer_alignment $answer_alignment]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
@@ -86,7 +89,7 @@
}
ad_returnredirect [export_vars -base one-a {assessment_id}]\#$as_item_id
ad_script_abort
-
+
}
set label_or_types [list]
@@ -124,7 +127,10 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_sb"} {
@@ -135,7 +141,7 @@
-sort_order_type $order_type \
-item_answer_alignment $answer_alignment \
-prepend_empty_p t]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-ta.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-ta.tcl,v
diff -u -r1.6 -r1.6.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-add-display-ta.tcl 12 Jun 2006 02:49:51 -0000 1.6
+++ openacs-4/packages/assessment/www/asm-admin/item-add-display-ta.tcl 5 Feb 2007 14:15:04 -0000 1.6.2.1
@@ -51,7 +51,10 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_ta"} {
@@ -60,7 +63,7 @@
-abs_size $abs_size \
-acs_widget "" \
-item_answer_alignment $answer_alignment]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-tb.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-tb.tcl,v
diff -u -r1.6 -r1.6.2.1
--- openacs-4/packages/assessment/www/asm-admin/item-add-display-tb.tcl 12 Jun 2006 02:49:51 -0000 1.6
+++ openacs-4/packages/assessment/www/asm-admin/item-add-display-tb.tcl 5 Feb 2007 14:15:04 -0000 1.6.2.1
@@ -51,15 +51,18 @@
set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id]
set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id]
set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id]
- db_dml update_section_in_assessment {}
+ as::section::update_section_in_assessment\
+ -old_section_id $section_id \
+ -new_section_id $new_section_id \
+ -new_assessment_rev_id $new_assessment_rev_id
set old_item_id $as_item_id
if {![db_0or1row item_display {}] || $object_type != "as_item_display_tb"} {
set as_item_display_id [as::item_display_tb::new \
-html_display_options $html_options \
-abs_size $abs_size \
-item_answer_alignment $answer_alignment]
-
+
if {![info exists object_type]} {
# first item display mapped
as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel
Index: openacs-4/packages/assessment/www/asm-admin/item-add.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add.adp,v
diff -u -r1.2.6.1 -r1.2.6.2
--- openacs-4/packages/assessment/www/asm-admin/item-add.adp 24 Jan 2007 20:15:30 -0000 1.2.6.1
+++ openacs-4/packages/assessment/www/asm-admin/item-add.adp 5 Feb 2007 14:15:04 -0000 1.2.6.2
@@ -185,381 +185,12 @@
Correct
Answer
-
+
+ @formgroup.widget;noquote@
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formerror.choice.1;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formgroup.widget;noquote@
-
-
-
-
-
- @formerror.correct.1;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formerror.choice.2;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formgroup.widget;noquote@
-
-
-
-
-
- @formerror.correct.2;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formerror.choice.3;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formgroup.widget;noquote@
-
-
-
-
-
- @formerror.correct.3;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formerror.choice.4;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formgroup.widget;noquote@
-
-
-
-
-
- @formerror.correct.4;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formerror.choice.5;noquote@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @formgroup.widget;noquote@
-
-
-
-
-
- @formerror.correct.5;noquote@
-
-
-
-
-
-
-
@@ -575,7 +206,10 @@
#assessment.item_type_long_answer_help#
-
+
+