dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Polissage : openerp7_burette : code superflu.
[lhc/ateliers.git]
/
etc
/
sv
/
openerp7_burette
/
run
diff --git
a/etc/sv/openerp7_burette/run
b/etc/sv/openerp7_burette/run
index
5a855c3
..
4a6bd9a
100755
(executable)
--- a/
etc/sv/openerp7_burette/run
+++ b/
etc/sv/openerp7_burette/run
@@
-17,7
+17,7
@@
export LOGNAME="$sv"
d = h.split('.')[0]
r = openerp.tools.config['dbfilter'].replace('%h', h).replace('%d', d)
+ try:
d = h.split('.')[0]
r = openerp.tools.config['dbfilter'].replace('%h', h).replace('%d', d)
+ try:
- + f = req.httprequest.environ['HTTP_OPENERP_DB_FILTER']
or ''
+ + f = req.httprequest.environ['HTTP_OPENERP_DB_FILTER']
+ r = r.replace('%f', f)
+ except KeyError:
+ pass
+ r = r.replace('%f', f)
+ except KeyError:
+ pass