diff options
| author | Dharmang Soni <dpr@openerp.com> | 2016-08-31 17:40:57 +0530 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2016-10-03 18:20:25 +0200 |
| commit | ef96bd0669c9be176c69eb6a50fc93d9511a3692 (patch) | |
| tree | b326249f0c621c8d776ad2a060f774957ddfe0e6 /addons/web/controllers | |
| parent | 48f6b8278e6c29487ac8d340b45784c216be260e (diff) | |
[ADD] web: Added database list controller
Diffstat (limited to 'addons/web/controllers')
| -rw-r--r-- | addons/web/controllers/main.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index ce609a3b3e5..d8c9c0d237e 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -695,6 +695,15 @@ class Database(http.Controller): error = "Master password update error: %s" % e return self._render_template(error=error) + @http.route('/web/database/list', type='json', auth='none') + def list(self): + """ + Used by Mobile application for listing database + :return: List of databases + :rtype: list + """ + return http.db_list() + class Session(http.Controller): @http.route('/web/session/get_session_info', type='json', auth="none") |
