Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 4728:4caa6de726a5
templating: Rename 'extension' argument in Loader.load() to 'view'
to avoid confusion with file extension, and because this is what
this argument really does - specifies a different view for a class.
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Mon, 14 Jan 2013 00:13:58 +0300 |
| parents | 5033c2ad80a7 |
| children | 94be76e04140 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Sun Jan 13 22:39:46 2013 +0300 +++ b/roundup/cgi/client.py Mon Jan 14 00:13:58 2013 +0300 @@ -1067,7 +1067,7 @@ """ Return a PageTemplate for the named page """ name = self.classname - extension = self.template + view = self.template # catch errors so we can handle PT rendering errors more nicely args = { @@ -1075,7 +1075,7 @@ 'error_message': self.error_message } try: - pt = self.instance.templates.load(name, extension) + pt = self.instance.templates.load(name, view) # let the template render figure stuff out result = pt.render(self, None, None, **args) self.additional_headers['Content-Type'] = pt.content_type
