Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #215 from jmartinm/prod-batchuploader
Browse files Browse the repository at this point in the history
BatchUploader: holdingpen support
  • Loading branch information
kaplun committed Jun 1, 2015
2 parents 0a40fa5 + 011a079 commit df0fd29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/bibupload/lib/batchuploader_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
from StringIO import StringIO

PERMITTED_MODES = ['-i', '-r', '-c', '-a', '-ir',
'--insert', '--replace', '--correct', '--append']
'--insert', '--replace', '--correct', '--append', '--holdingpen']

_CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS_RE = re.compile(CFG_BATCHUPLOADER_WEB_ROBOT_AGENTS)

Expand Down
3 changes: 2 additions & 1 deletion modules/bibupload/lib/batchuploader_webinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def legacyrobotupload(req, form):
return cli_upload(req, form.get('file', None), argd['mode'], argd['callback_url'], argd['nonce'], argd['special_treatment'])

if component == 'robotupload':
if path and path[0] in ('insert', 'replace', 'correct', 'append', 'insertorreplace'):
if path and path[0] in ('insert', 'replace', 'correct', 'append',
'insertorreplace', 'holdingpen'):
return restupload, None
else:
return legacyrobotupload, None
Expand Down

0 comments on commit df0fd29

Please sign in to comment.