Hi

In applications/admin/views/default/plugin.html it looks like it
generates a wrong link for deletion of files:

      <span class="filetools controls">
      <a class="button editbutton" href="/admin/default/edit/app/views/
plugin_layout/manager.html"><span>edit</span></a>
      <a class="icon delete tooltip" href="/admin/default/delete/app/
views/plugin_layout/manager.html?sender=plugin%2Fapp"><img src="/admin/
static/images/delete_icon.png"><span>Delete this file (you will be
asked to confirm deletion)</span></a>
      </span>
      <span class="file">
      <a href="/admin/default/peek/app/views/plugin_layout/
manager.html">plugin_layout/manager.html</a>
      </span>
      <span class="extras">
      extends <b>plugin_layout/layout.html</b>

      </span>

The sender is set to ?sender=plugin%2Fapp but it should bee ?
sender=plugin%2Fapp%2Flayout where the plugin is called layout.

It looks like the problem is in the function
def deletefile(arglist):
  return A(TAG[''](IMG(_src=URL('static', 'images/delete_icon.png')),
SPAN(T('Delete this file (you will be asked to confirm deletion)'))),
_class='icon delete tooltip',
_href=URL('delete',args=arglist,vars=dict(sender=request.function
+'/'+app)))

Br.
Rune Christensen

Reply via email to