# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1238417484 -7200 # Mon Mar 30 14:51:24 2009 +0200 # Branch tls-sprint # Node ID bad0283105c582b0bf6b2f63a7edd8769c9335bf # Parent 1a25f5d85952f223a7fecdba65ce7b352b0cef3e backport these tags from cw diff --git a/views.py b/views.py --- a/views.py +++ b/views.py @@ -22,11 +22,18 @@ from cubicweb.web import stdmsgs from cubicweb.web.action import (LinkToEntityAction, Action) from cubicweb.web.views import baseviews, baseforms +from cubicweb.web.views.editforms import AutomaticEntityForm +from cubicweb.web.views.boxes import EditBox from cubicweb.web.component import EntityVComponent from cubicweb.web.views.basecontrollers import JSonController _ = unicode +AutomaticEntityForm.rcategories.set_rtag('generic', 'comments', 'subject') +AutomaticEntityForm.rcategories.set_rtag('generic', 'comments', 'object') +EditBox.rmode.set_rtag('link', 'comments', 'subject') +EditBox.rmode.set_rtag('link', 'comments', 'object') + # comment views ############################################################### class CommentPrimaryView(baseviews.PrimaryView):