-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
36 changed files
with
27 additions
and
1,004 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,4 @@ | ||
import logging | ||
|
||
from . import common | ||
from . import controllers | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
class Options(object): | ||
pass | ||
|
||
def wsgi_postload(): | ||
import openerp | ||
import os | ||
import tempfile | ||
import getpass | ||
_logger.info("embedded mode") | ||
o = Options() | ||
o.dbfilter = openerp.tools.config['dbfilter'] | ||
o.server_wide_modules = openerp.conf.server_wide_modules or ['web'] | ||
try: | ||
username = getpass.getuser() | ||
except Exception: | ||
username = "unknown" | ||
o.session_storage = os.path.join(tempfile.gettempdir(), "oe-sessions-" + username) | ||
o.addons_path = openerp.modules.module.ad_paths | ||
o.serve_static = True | ||
o.backend = 'local' | ||
|
||
app = common.http.Root(o) | ||
openerp.wsgi.register_wsgi_handler(app) | ||
import common | ||
import controllers | ||
|
||
wsgi_postload = common.http.wsgi_postload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.