File:  [LON-CAPA] / capa / capa51 / GUITools / scorer.errors.tcl
Revision 1.2: download - view: text, annotated - select for diffs
Tue Feb 22 18:10:27 2000 UTC (24 years, 3 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- fixed analyzing a submmisions file was completely broken
- merging a classl file added
- sending email to an entire class
- scorer detects multiple mark errors

###########################################################
# handleErrorsScorer
###########################################################
###########################################################
###########################################################
proc handleErrorsScorer { num } {
    global gScorer

    if { [catch {set length [llength $gScorer(errors.$num)]}]} {
	displayMessage "There are no errors to save."
    }

    if { "" == [set file [tk_getSaveFile]] } { return }
    if { [catch {set fileId [open $file "w"]}] } {
	displayError "Unable to write to $file"
    }

    for { set i 0 } { $i < $length } { incr i } {
	puts $fileId "#[lindex $gScorer(errortype.$num) $i]"
	puts $fileId "#[lindex $gScorer(errors.$num) $i]"
    }
    close $fileId
}

proc handleErrorsScorer2 { num } {
    global gScorer

    if {[winfo exists .scorerError$num]} { 
	capaRaise .scorerError$num
	return 
    } 
    set errorWin [toplevel .scorerError$num] 
    
    set generalInfoFrame
    set studentInfoFrame
    
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>