diff --git a/views.py b/views.py index bb1159c904846bd92336a83a4fa23887ab03fd0f_dmlld3MucHk=..2500754fe3ccb1cdd2079b49ce0e3cb6958811af_dmlld3MucHk= 100644 --- a/views.py +++ b/views.py @@ -274,5 +274,4 @@ __regid__ = 'reply_comment' __select__ = LinkToEntityAction.__select__ & implements('Comment') - etype = 'Comment' rtype = 'comments' @@ -278,5 +277,6 @@ 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', ''))