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

« back to all changes in this revision

Viewing changes to ivle/webapp/base/views.py

  • Committer: William Grant
  • Date: 2009-07-04 11:51:46 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090704115146-q6bv2b07g9hcyein
Replace all base view __init__s with one at the root that sets the context.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    """
22
22
    Abstract base class for all view objects.
23
23
    """
 
24
 
 
25
    def __init__(self, req, context):
 
26
        self.context = context
 
27
 
24
28
    def render(self, req):
25
29
        raise NotImplementedError()
26
30