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

merge

No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,12 @@
def dc_description(self, format='text/plain'):
return self.printable_value('content', format=format)
def after_deletion_path(self):
"""return (path, parameters) which should be used as redirect
information when this entity is being deleted
"""
return self.root().rest_path(), {}
# some views potentially needed on web *and* server side (for notification)
# so put them here
......
......@@ -187,8 +187,8 @@
Button(stdmsgs.BUTTON_CANCEL,
onclick=self.jsfunc % (jseid, ''))]
form = self.vreg['forms'].select('edition', self.req,
entity=newcomment, form_buttons=buttons,
attrcategories=('primary',))
entity=newcomment,
form_buttons=buttons)
self.w(u'<div id="comment%sSlot">%s</div>' % (
commented.eid, form.form_render(main_form_title=u'',
display_label=False,
......@@ -203,7 +203,7 @@
def call(self, commented):
self.initialize_varmaker()
newcomment = self.vreg.etype_class('Comment')(self.req)
newcomment = self.vreg['etypes'].etype_class('Comment')(self.req)
newcomment.eid = self.varmaker.next()
self.comment_form(commented, newcomment)
......
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