Example #1
0
 def edit(self, *args, **kw):
     # This is a somewhat ugly solution. There might be a better way to add
     # a delete button at the end of the edit form, but I haven't found one
     # so far.
     res = EasyCrudRestController.edit(self, *args, **kw)
     res['delete_url'] = '/%s' % tg.request.controller_url
     return res
Example #2
0
 def edit(self, *args, **kw):
     # This is a somewhat ugly solution. There might be a better way to add
     # a delete button at the end of the edit form, but I haven't found one
     # so far.
     res = EasyCrudRestController.edit(self, *args, **kw)
     res['delete_url'] = '/%s' % tg.request.controller_url
     return res