# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1265644412 -3600
#      Mon Feb 08 16:53:32 2010 +0100
# Node ID 2500754fe3ccb1cdd2079b49ce0e3cb6958811af
# Parent  bb1159c904846bd92336a83a4fa23887ab03fd0f
3.6 api update

diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -274,9 +274,9 @@
     __regid__ = 'reply_comment'
     __select__ = LinkToEntityAction.__select__ & implements('Comment')
 
-    etype = 'Comment'
     rtype = 'comments'
-    target = 'subject'
+    role = 'object'
+    target_etype = 'Comment'
 
     title = _('reply to this comment')
     category = 'hidden'
@@ -284,8 +284,8 @@
 
     def url(self):
         comment = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
-        linkto = '%s:%s:%s' % (self.rtype, comment.eid, self.target)
-        return self._cw.build_url(vid='creation', etype=self.etype,
+        linkto = '%s:%s:subject' % (self.rtype, comment.eid)
+        return self._cw.build_url(vid='creation', etype=self.target_etype,
                                   __linkto=linkto,
                                   __redirectpath=comment.root().rest_path(),
                                   __redirectvid=self._cw.form.get('vid', ''))