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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-12 03:08:31 UTC
  • Revision ID: matt.giuca@gmail.com-20100212030831-5z1p0supwnayzco3
offering.html: Minor change to manages buttons. A bit neater, and avoids a stray <br /> if you aren't a tutor.

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