[api] use _cw
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 25 Sep 2009 11:27:26 +0200
changeset 3474 020fc867f7b2
parent 3473 d8bc02158efc
child 3475 9c07e6c48e35
[api] use _cw
web/test/test_views.py
--- a/web/test/test_views.py	Fri Sep 25 11:27:01 2009 +0200
+++ b/web/test/test_views.py	Fri Sep 25 11:27:26 2009 +0200
@@ -30,8 +30,8 @@
     __regid__ = 'someview'
 
     def call(self):
-        self.req.add_js('spam.js')
-        self.req.add_js('spam.js')
+        self._cw.add_js('spam.js')
+        self._cw.add_js('spam.js')
 
 
 class ManualCubicWebTCs(AutoPopulateTest):