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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2010-01-28 00:59:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1453.
  • Revision ID: me@williamgrant.id.au-20100128005945-1iz3hxbuc5q3pjov
Drop offering.subject.url from the result of userservice's get_enrolments, because it's unused and now broken.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    """
36
36
    content_type = "application/octet-stream"
37
37
 
38
 
    def __init__(self, req, *args, **kwargs):
39
 
        for key in kwargs:
40
 
            setattr(self, key, kwargs[key])
41
 
 
42
38
    def render(self, req):
43
39
        raise NotImplementedError()
44
40
 
161
157
    template = None
162
158
    ctx = genshi.template.Context()
163
159
 
164
 
    def __init__(self, req, *args, **kwargs):
165
 
        for key in kwargs:
166
 
            setattr(self, key, kwargs[key])
167
 
    
168
160
    def render_fragment(self):
169
161
        if self.template is None:
170
162
            raise NotImplementedError()