Skip to content
Snippets Groups Projects
Commit 4f1c054062bf authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

default is stable

No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
def test_possible_actions(self): def test_possible_actions(self):
req = self.request() req = self.request()
req.create_entity('Comment', content=u"bouh!", comments=self.b) req.create_entity('Comment', content=u"bouh!", comments=self.b)
self.create_user('user') # will commit self.create_user(req, 'user') # will commit
rset = req.execute('Any X WHERE X is BlogEntry') rset = req.execute('Any X WHERE X is BlogEntry')
actions = self.pactions(req, rset) actions = self.pactions(req, rset)
self.assertTrue(('reply_comment', views.AddCommentAction) in actions) self.assertTrue(('reply_comment', views.AddCommentAction) in actions)
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
def test_add_related_actions(self): def test_add_related_actions(self):
req = self.request() req = self.request()
req.create_entity('Comment', content=u"bouh!", comments=self.b) req.create_entity('Comment', content=u"bouh!", comments=self.b)
self.create_user('user') # will comit self.create_user(req, 'user') # will comit
rset = req.execute('Any X WHERE X is Comment') rset = req.execute('Any X WHERE X is Comment')
self.assertEqual(self.pactions_by_cats(req, rset), []) self.assertEqual(self.pactions_by_cats(req, rset), [])
cnx = self.login('user') cnx = self.login('user')
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
def test_notif_after_add_relation_comments(self): def test_notif_after_add_relation_comments(self):
req = self.session req = self.session
req.set_pool() req.set_cnxset()
c = req.execute('Comment X').get_entity(0, 0) c = req.execute('Comment X').get_entity(0, 0)
v = self.vreg['views'].select('notif_after_add_relation_comments', req, v = self.vreg['views'].select('notif_after_add_relation_comments', req,
rset=c.cw_rset, row=0) rset=c.cw_rset, row=0)
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
i18n_by_author_field: admin i18n_by_author_field: admin
url: http://testing.fr/cubicweb/blogentry/%s''' % url: http://testing.fr/cubicweb/blogentry/%s''' %
c.comments[0].eid) c.comments[0].eid)
self.assertEqual(v.subject(), 'new comment for blogentry une news !') self.assertEqual(v.subject(), 'new comment for BlogEntry une news !')
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -312,6 +312,7 @@ ...@@ -312,6 +312,7 @@
# adapters ##################################################################### # adapters #####################################################################
# XXX implements ibreadcrumbs instead
from cubicweb.web.views.editcontroller import IEditControlAdapter from cubicweb.web.views.editcontroller import IEditControlAdapter
class CommentIEditControlAdapter(IEditControlAdapter): class CommentIEditControlAdapter(IEditControlAdapter):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment