~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-marks

  • Committer: William Grant
  • Date: 2009-01-20 06:00:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090120060055-iuvd8hycor67acfa
ivle.rpc.decorators: Add (new package, too). Has a couple of decorators to
    apply most security policy in userservice, making it significantly shorter
    and easier to audit.
www/apps/userservice: Use the decorators to protect all actions whose existing
    policy can be easily replaced with them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from xml.dom import minidom
31
31
 
32
32
import ivle.database
33
 
import ivle.worksheet.utils
 
33
import ivle.worksheet
34
34
import ivle.conf
35
35
 
36
36
if os.getuid() != 0:
132
132
            subject, worksheet_name)
133
133
        # We simply ignore optional exercises here
134
134
        mand_done, mand_total, _, _ = (
135
 
            ivle.worksheet.utils.calculate_score(store, user, worksheet))
 
135
            ivle.worksheet.calculate_score(store, user, worksheet))
136
136
        worksheet_pcts.append(float(mand_done) / mand_total)
137
137
        problems_done += mand_done
138
138
        problems_total += mand_total