equal
deleted
inserted
replaced
196 def main_template(self, req, oid='main', **context): |
196 def main_template(self, req, oid='main', **context): |
197 """display query by calling the given template (default to main), |
197 """display query by calling the given template (default to main), |
198 and returning the output as a string instead of requiring the [w]rite |
198 and returning the output as a string instead of requiring the [w]rite |
199 method as argument |
199 method as argument |
200 """ |
200 """ |
201 res = self.render('templates', oid, req, **context) |
201 res = self.render('views', oid, req, **context) |
202 if isinstance(res, unicode): |
202 if isinstance(res, unicode): |
203 return res.encode(req.encoding) |
203 return res.encode(req.encoding) |
204 assert isinstance(res, str) |
204 assert isinstance(res, str) |
205 return res |
205 return res |
206 |
206 |