~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 13:05:56 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-20090704130556-rwpn6d8t6az3tugt
Implement optional view subpath support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    Abstract base class for all view objects.
23
23
    """
24
24
 
25
 
    def __init__(self, req, context):
 
25
    subpath_allowed = False
 
26
 
 
27
    def __init__(self, req, context, subpath=None):
26
28
        self.context = context
 
29
        if self.subpath_allowed:
 
30
            self.subpath = subpath
27
31
 
28
32
    def render(self, req):
29
33
        raise NotImplementedError()