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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-03-03 01:48:48 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090303014848-dyurvmtmbneohd7f
Modified the setup script to include '.txt' files.

This allows the automatic inclusion of definitions.txt from the rst
code, as it is needed by all worksheets.

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
 
    subpath_allowed = False
26
 
 
27
 
    def __init__(self, req, context, subpath=None):
28
 
        self.context = context
29
 
        if self.subpath_allowed:
30
 
            self.subpath = subpath
31
 
 
32
24
    def render(self, req):
33
25
        raise NotImplementedError()
34
26