projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3b76ea
)
[IMP] dbfilter option from openerp-server in embedded mode
author
Antony Lesuisse
<al@openerp.com>
Sun, 25 Sep 2011 00:55:23 +0000
(
02:55
+0200)
committer
Antony Lesuisse
<al@openerp.com>
Sun, 25 Sep 2011 00:55:23 +0000
(
02:55
+0200)
bzr revid: al@openerp.com-
20110925005523
-krlap0jdgc5ukott
addons/web/__init__.py
patch
|
blob
|
history
diff --git
a/addons/web/__init__.py
b/addons/web/__init__.py
index
263e0b8
..
681fd6b
100644
(file)
--- a/
addons/web/__init__.py
+++ b/
addons/web/__init__.py
@@
-11,11
+11,12
@@
class Options(object):
def wsgi_postload():
import openerp.wsgi
+ import openerp.tools
import os
import tempfile
_logger.info("embedded mode")
o = Options()
- o.dbfilter = '.*'
+ o.dbfilter = openerp.tools.config['dbfilter']
o.session_storage = os.path.join(tempfile.gettempdir(), "oe-sessions")
o.addons_path = os.path.dirname(os.path.dirname(__file__))
o.serve_static = True