Methods
|
|
|
|
__init__
|
__init__ ( self, fn=None )
|
|
correct
|
correct ( self, fn )
correct(filename) -> enter marks and comments for an exercise
|
|
createcomment
|
createcomment ( self, file )
Create a stripped comment string using pico
|
|
displaystatus
|
displaystatus ( self, status )
displaystatus(status) -> print a files status in hr form
|
|
globalconfig
|
globalconfig ( self, fn )
|
|
labconfig
|
labconfig ( self )
Sets valid filenames for submission and proper directories
labdata is a hash containing hashes of arrays
labdata -> filelist -> 'file': [ uebungsnummer, duedate ]
|
|
pending
|
pending ( self )
pending() -> list unchecked exercises
|
|
readglobalstatus
|
readglobalstatus ( self )
|
|
readuserstatus
|
readuserstatus ( self, statusfile=None )
readuserstatus([statusfile]) -> read in from a user's statusfile,
returns a hash of arrays where the key name is the filename:
statuscode, |array[0][x] = submitdate |
|array[1][x] = users comment |
|array[2][x] = teachers comment|
|
|
retrieve
|
retrieve ( self )
retrieve() -> fetch files from a repository
|
|
setlab
|
setlab ( self, lab )
Set the users lab info to the supplied lab
|
|
status
|
status ( self )
status() -> print the current status of submitted exercises
|
|
submit
|
submit ( self, files )
Copies files in the according directories,
makes entries in the submission tree
|
|
userconfig
|
userconfig ( self )
Determines the current user, his permissions and the lab
Exceptions
|
|
IOError, ( 2, "invalid admin group" )
ValueError
|
|
|
usermap
|
usermap ( self )
usermap(groupdir) -> Creates a hash(key = groupname) of a hash(userid) that lists
the user's name
|
|
writealluserstatus
|
writealluserstatus ( self )
writealluserstatuschange() -> write the changed entries for
the users to disk
|
|
writeglobalstatus
|
writeglobalstatus ( self )
|
|
writeuserstatus
|
writeuserstatus ( self, files )
Create comments and write the userstatusfile
|