Table of Contents

Class: configure ./uebungsutils.py

Configures a session

Methods   
__init__
correct
createcomment
displaystatus
globalconfig
labconfig
pending
readglobalstatus
readuserstatus
retrieve
setlab
status
submit
userconfig
usermap
writealluserstatus
writeglobalstatus
writeuserstatus
  __init__ 
__init__ ( self,  fn=None )

  correct 
correct ( self,  fn )

correct(filename) -> enter marks and comments for an exercise

Exceptions   
ValueError
  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 )

Exceptions   
ValueError
  labconfig 
labconfig ( self )

Sets valid filenames for submission and proper directories labdata is a hash containing hashes of arrays labdata -> filelist -> 'file': [ uebungsnummer, duedate ]

Exceptions   
ValueError
  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


Table of Contents

This document was automatically generated on Thu Oct 17 15:05:28 2002 by HappyDoc version r1_6_1