Browse Source

[PEP8]

pull/34/head
Laurent Mignon (aka lmi) 10 years ago
parent
commit
97f491724f
  1. 2
      auth_from_http_remote_user/__init__.py
  2. 1
      auth_from_http_remote_user/controllers/main.py
  3. 18
      dbfilter_from_header/__openerp__.py

2
auth_from_http_remote_user/__init__.py

@ -22,4 +22,4 @@
from . import controllers from . import controllers
from . import res_config from . import res_config
from . import res_users from . import res_users
from . import model
from . import model

1
auth_from_http_remote_user/controllers/main.py

@ -82,7 +82,6 @@ class Home(main.Home):
SUPERUSER_ID, SUPERUSER_ID,
None) None)
if user_id is None: if user_id is None:
if default_login_page_disabled: if default_login_page_disabled:
raise http.AuthenticationError() raise http.AuthenticationError()

18
dbfilter_from_header/__openerp__.py

@ -19,14 +19,14 @@
# #
############################################################################## ##############################################################################
{ {
"name" : "dbfilter_from_header",
"version" : "1.0",
"author" : "Therp BV",
"name": "dbfilter_from_header",
"version": "1.0",
"author": "Therp BV",
"complexity": "normal", "complexity": "normal",
"description": """ "description": """
This addon lets you pass a dbfilter as a HTTP header. This addon lets you pass a dbfilter as a HTTP header.
This is interesting for setups where database names can't be mapped to
This is interesting for setups where database names can't be mapped to
proxied host names. proxied host names.
In nginx, use In nginx, use
@ -34,11 +34,11 @@
The addon has to be loaded as server-wide module. The addon has to be loaded as server-wide module.
""", """,
"category" : "Tools",
"depends" : [
"category": "Tools",
"depends": [
'web', 'web',
], ],
"data" : [
"data": [
], ],
"js": [ "js": [
], ],
@ -46,7 +46,7 @@
], ],
"auto_install": False, "auto_install": False,
"installable": True, "installable": True,
"external_dependencies" : {
'python' : [],
"external_dependencies": {
'python': [],
}, },
} }
Loading…
Cancel
Save