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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/publishing.py

  • Committer: Matt Giuca
  • Date: 2010-02-25 06:52:48 UTC
  • mto: This revision was merged to the branch mainline in revision 1731.
  • Revision ID: matt.giuca@gmail.com-20100225065248-p1t8oys3olxtwdlg
project-form no longer assumes the type of context; pass an extra projectset value.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
                           Worksheet, WorksheetExercise)
24
24
 
25
25
from ivle.webapp import ApplicationRoot
26
 
from ivle.webapp.routing import ROOT
27
 
from ivle.webapp.routing.decorators import forward_route, reverse_route
 
26
from ivle.webapp.publisher import ROOT
 
27
from ivle.webapp.publisher.decorators import forward_route, reverse_route
28
28
 
29
29
import ivle.worksheet
30
30
 
84
84
        self.worksheet_exercise = worksheet_exercise
85
85
        self.user = user
86
86
 
87
 
    def get_permissions(self, user):
88
 
        return self.user.get_permissions(user)
 
87
    def get_permissions(self, user, config):
 
88
        return self.user.get_permissions(user, config)
89
89
 
90
90
 
91
91
@forward_route(WorksheetExercise, '+attempts', argc=1)