cwvreg.py
branchtls-sprint
changeset 823 cb8ccbef8fa5
parent 816 9cd49a910fce
child 1016 26387b836099
equal deleted inserted replaced
822:e3d8db01f3f5 823:cb8ccbef8fa5
   191         except KeyError:
   191         except KeyError:
   192             rset = None
   192             rset = None
   193         selected = self.select(objclss, req, rset, **context)
   193         selected = self.select(objclss, req, rset, **context)
   194         return selected.dispatch(**context)
   194         return selected.dispatch(**context)
   195         
   195         
   196     def main_template(self, req, oid='main', **context):
   196     def main_template(self, req, oid='main-template', **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('views', oid, req, **context)
   201         res = self.render('views', oid, req, **context)