aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-01-18 23:32:11 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2011-01-18 23:32:11 -0500
commit7930310d468ca44ff3e7b86820c0dafc5e81d693 (patch)
treed344da55e4af54963d57ed55c9e55409956c2ce2
parentac52c71275beb06afc686604cd50c0e0127f2b0f (diff)
downloadGradeBook-7930310d468ca44ff3e7b86820c0dafc5e81d693.tar.gz
GradeBook-7930310d468ca44ff3e7b86820c0dafc5e81d693.zip
added non web version of delete column
Ignore-this: 1f21697c2802f5c4a98c9c25e49fe87b darcs-hash:20110119043211-067c0-c2b2b91a6139f6a39772020c0d970cd163a7dab8.gz
-rwxr-xr-xGradeBook.tcl10
1 files changed, 7 insertions, 3 deletions
diff --git a/GradeBook.tcl b/GradeBook.tcl
index 87d208d..69154e6 100755
--- a/GradeBook.tcl
+++ b/GradeBook.tcl
@@ -445,9 +445,7 @@ proc ChangeGrades { permission_list user } {
}
}
-proc DeleteColumn { permission_list user } {
- global script_name
- set columnname [::ncgi::value columnname {}]
+proc DeleteColumnNonWeb { columnname } {
if { $columnname != "" } {
set eval_str [concat SELECT * FROM GradesTable ]
set err [catch {db eval $eval_str v {} } errStat]
@@ -479,6 +477,12 @@ proc DeleteColumn { permission_list user } {
}
}
+proc DeleteColumn { permission_list user } {
+ global script_name
+ set columnname [::ncgi::value columnname {}]
+ DeleteColumnNonWeb $columnname
+}
+
proc AddColumnNonWeb { columnname2add column_category maxpointpossible } {
if { $columnname2add != "" } {