cwvreg.py
branchtls-sprint
changeset 816 9cd49a910fce
parent 785 e4f9fa3c891a
child 823 cb8ccbef8fa5
equal deleted inserted replaced
813:69c623aa39ed 816:9cd49a910fce
   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