view.py
branchtls-sprint
changeset 1143 8d097defbf2c
parent 1132 96752791c2b6
child 1144 654047cd0c30
equal deleted inserted replaced
1142:03a9acf3c299 1143:8d097defbf2c
   100     # content_type = 'application/xhtml+xml' # text/xhtml'
   100     # content_type = 'application/xhtml+xml' # text/xhtml'
   101     binary = False
   101     binary = False
   102     add_to_breadcrumbs = True
   102     add_to_breadcrumbs = True
   103     category = 'view'
   103     category = 'view'
   104 
   104 
   105     def __init__(self, req=None, rset=None):
   105     def __init__(self, req=None, rset=None, **kwargs):
   106         super(View, self).__init__(req, rset)
   106         super(View, self).__init__(req, rset, **kwargs)
   107         self.w = None
   107         self.w = None
   108 
   108 
   109     @property
   109     @property
   110     def content_type(self):
   110     def content_type(self):
   111         if self.req.xhtml_browser():
   111         if self.req.xhtml_browser():
   359     """
   359     """
   360     __select__ = none_rset() | non_final_entity()
   360     __select__ = none_rset() | non_final_entity()
   361 
   361 
   362     default_rql = None
   362     default_rql = None
   363 
   363 
   364     def __init__(self, req, rset):
   364     def __init__(self, req, rset, **kwargs):
   365         super(EntityStartupView, self).__init__(req, rset)
   365         super(EntityStartupView, self).__init__(req, rset, **kwargs)
   366         if rset is None:
   366         if rset is None:
   367             # this instance is not in the "entityview" category
   367             # this instance is not in the "entityview" category
   368             self.category = 'startupview'
   368             self.category = 'startupview'
   369 
   369 
   370     def startup_rql(self):
   370     def startup_rql(self):