diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-01-18 23:32:11 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-01-18 23:32:11 -0500 |
commit | 7930310d468ca44ff3e7b86820c0dafc5e81d693 (patch) | |
tree | d344da55e4af54963d57ed55c9e55409956c2ce2 /GradeBook.tcl | |
parent | ac52c71275beb06afc686604cd50c0e0127f2b0f (diff) | |
download | GradeBook-7930310d468ca44ff3e7b86820c0dafc5e81d693.tar.gz GradeBook-7930310d468ca44ff3e7b86820c0dafc5e81d693.zip |
added non web version of delete column
Ignore-this: 1f21697c2802f5c4a98c9c25e49fe87b
darcs-hash:20110119043211-067c0-c2b2b91a6139f6a39772020c0d970cd163a7dab8.gz
Diffstat (limited to 'GradeBook.tcl')
-rwxr-xr-x | GradeBook.tcl | 10 |
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 != "" } { |