# HG changeset patch # User Sylvain Thénault # Date 1261484074 -3600 # Node ID b5aa030bb2f9353a9cad7609c6d7a517d133688a # Parent b7cf0ebdd8b66a9c863921923b89e233a673d696 use ._cw instead of .req (reintroduced by merge of stable) diff -r b7cf0ebdd8b6 -r b5aa030bb2f9 web/htmlwidgets.py --- a/web/htmlwidgets.py Tue Dec 22 13:13:53 2009 +0100 +++ b/web/htmlwidgets.py Tue Dec 22 13:14:34 2009 +0100 @@ -288,8 +288,8 @@ When using remember to include the required css and js with: - self.req.add_js('jquery.tablesorter.js') - self.req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css')) + self._cw.add_js('jquery.tablesorter.js') + self._cw.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css')) """ highlight = "onmouseover=\"addElementClass(this, 'highlighted');\" " \ "onmouseout=\"removeElementClass(this, 'highlighted');\"" diff -r b7cf0ebdd8b6 -r b5aa030bb2f9 web/views/forms.py --- a/web/views/forms.py Tue Dec 22 13:13:53 2009 +0100 +++ b/web/views/forms.py Tue Dec 22 13:14:34 2009 +0100 @@ -227,9 +227,9 @@ return self.force_session_key # XXX if this is a json request, suppose we should redirect to the # entity primary view - if self.req.json_request and self.edited_entity.has_eid(): + if self._cw.json_request and self.edited_entity.has_eid(): return '%s#%s' % (self.edited_entity.absolute_url(), self.domid) - return '%s#%s' % (self.req.url(), self.domid) + return '%s#%s' % (self._cw.url(), self.domid) def build_context(self, formvalues=None): super(EntityFieldsForm, self).build_context(formvalues) diff -r b7cf0ebdd8b6 -r b5aa030bb2f9 web/views/startup.py --- a/web/views/startup.py Tue Dec 22 13:13:53 2009 +0100 +++ b/web/views/startup.py Tue Dec 22 13:14:34 2009 +0100 @@ -73,10 +73,10 @@ self.w(u'') def startup_views(self):