summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-10 09:02:17 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-03-10 09:02:17 (GMT)
commit42ce8cc686b3cf4fe05d290783ffab1ba402141a (patch)
tree3b3fb8a746782cd685ce1a50b95dea198f081221 /ocrloader.py
parent7ca19ca1b863fe2cfd9aaaeedaa5c0eaae81821f (diff)
downloadpfwbged.ocrloader-42ce8cc686b3cf4fe05d290783ffab1ba402141a.zip
pfwbged.ocrloader-42ce8cc686b3cf4fe05d290783ffab1ba402141a.tar.gz
pfwbged.ocrloader-42ce8cc686b3cf4fe05d290783ffab1ba402141a.tar.bz2
use config file to get username/password
Diffstat (limited to 'ocrloader.py')
-rw-r--r--ocrloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocrloader.py b/ocrloader.py
index af239ac..fd669d1 100644
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -66,7 +66,7 @@ def process(cfg, filename, payload, enable_ocr=True):
'-F', 'form.widgets.owner=%s' % cfg.get('user'),
'-F', 'form.widgets.treating_group=%s' % cfg.get('treating_group'),
'-F', 'form.widgets.title=%s' % title,
- '-u', 'admin:admin',
+ '-u', '%s:%s' % (cfg.get('get_username'), cfg.get('get_password')),
'%s/@@fileimport' % cfg.get('ged_base_url'),]
return (t == 0)