Added link to delete a staging file

This commit is contained in:
Roberto Rosario
2011-02-11 20:18:41 -04:00
parent c716f468d3
commit 1c41b6e05c
5 changed files with 40 additions and 18 deletions

View File

@@ -24,12 +24,13 @@ document_preview = {'text':_('preview'), 'class':'fancybox', 'view':'document_pr
document_download = {'text':_('download'), 'view':'document_download', 'args':'object.id', 'famfam':'page_save'}
staging_file_preview = {'text':_('preview'), 'class':'fancybox', 'view':'staging_file_preview', 'args':'object.id', 'famfam':'drive_magnify'}
staging_file_delete = {'text':_('delete'), 'view':'staging_file_delete', 'args':'object.id', 'famfam':'drive_delete'}
register_links(Document, [document_view, document_edit, document_edit_metadata, document_delete, document_download], menu_name='sidebar')
register_links(Document, [document_list, document_create, document_create_multiple, document_create_sibling], menu_name='sidebar')
register_links(['document_list', 'document_create', 'document_create_multiple', 'upload_document_with_type', 'upload_multiple_documents_with_type'], [document_list, document_create, document_create_multiple], menu_name='sidebar')
register_links(StagingFile, [staging_file_preview])
register_links(StagingFile, [staging_file_preview, staging_file_delete])
register_model_list_columns(Document, [
#{'name':_(u'mimetype'), 'attribute':'file_mimetype'},