strongbox: remove id parameter to the /myspace/strongbox/pick/ url, it's unused

This commit is contained in:
Benjamin Dauvergne 2013-10-18 17:02:25 +02:00
parent e80f903b36
commit b7279f8185
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@ class FileWithPreviewAndStrongboxWidget(FileWithPreviewWidget):
get_response().add_javascript(['../../aq/js/strongbox.js'])
root_url = get_publisher().get_root_url()
t += htmltext('''<p class="use-file-from-strongbox"><span
data-url="%smyspace/strongbox/pick?id=%s"
data-url="%smyspace/strongbox/pick"
rel="popup">%s</span></p>''') % (
root_url, self.name, _('Use file from strongbox'))
root_url, _('Use file from strongbox'))
return t

View File

@ -325,7 +325,6 @@ class StrongboxDirectory(Directory):
def pick [html] (self):
if get_request().form.get('select') == 'true':
return self.picked_file()
field_id = str(get_request().form.get('id'))
root_url = get_publisher().get_root_url()
sffiles = StrongboxItem.get_with_indexed_value(
str('user_id'), str(get_request().user.id))