Added document tool that deletes and re-creates all documents filesystem links
This commit is contained in:
@@ -4,7 +4,7 @@ from common.api import register_menu
|
||||
|
||||
from permissions import role_list
|
||||
|
||||
from documents import document_find_all_duplicates
|
||||
from documents import document_find_all_duplicates, document_recreate_all_links
|
||||
|
||||
check_settings = {'text':_(u'settings'), 'view':'check_settings', 'famfam':'cog'}
|
||||
|
||||
@@ -13,7 +13,7 @@ register_menu([
|
||||
{'text':_(u'home'), 'view':'home', 'famfam':'house', 'position':0},
|
||||
|
||||
{'text':_(u'tools'), 'view':'tools_menu', 'links': [
|
||||
document_find_all_duplicates,
|
||||
document_find_all_duplicates, document_recreate_all_links
|
||||
],'famfam':'wrench', 'name':'tools','position':7},
|
||||
|
||||
{'text':_(u'setup'), 'view':'check_settings', 'links': [
|
||||
|
||||
@@ -95,6 +95,9 @@ def _exists(path):
|
||||
def blank_menu(request):
|
||||
return render_to_response('generic_template.html', {
|
||||
'title':_(u'Tools menu'),
|
||||
'content':_(u'"Find all duplicates": Search all the documents\' checksums and return a list of the exact matches.')
|
||||
'paragraphs':[
|
||||
_(u'"Find all duplicates": Search all the documents\' checksums and return a list of the exact matches.'),
|
||||
_(u'"Recreate index links": Deletes and creates from scratch all the file system indexing links.')
|
||||
],
|
||||
},
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
Reference in New Issue
Block a user