← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~agilebg/server-env-tools/add_textual_database_name into lp:server-env-tools

 

Lorenzo Battistini - Agile BG has proposed merging lp:~agilebg/server-env-tools/add_textual_database_name into lp:server-env-tools.

Requested reviews:
  Server Environment And Tools Core Editors (server-env-tools-core-editors)

For more details, see:
https://code.launchpad.net/~agilebg/server-env-tools/add_textual_database_name/+merge/209184

This module disables the selection of available databases and replaces the list
with a textual field ('input' instead of 'select'). So, the user has to
fill the database name and does not read the other databases names.


How to use
----------

When you start your server add the name of this module in the "load" option:

$./openerp-server --load=web,textual_database_name
-- 
https://code.launchpad.net/~agilebg/server-env-tools/add_textual_database_name/+merge/209184
Your team Server Environment And Tools Core Editors is requested to review the proposed merge of lp:~agilebg/server-env-tools/add_textual_database_name into lp:server-env-tools.
=== added directory 'textual_database_name'
=== added file 'textual_database_name/__init__.py'
--- textual_database_name/__init__.py	1970-01-01 00:00:00 +0000
+++ textual_database_name/__init__.py	2014-03-04 08:04:55 +0000
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2014 Agile Business Group sagl (<http://www.agilebg.com>)
+#    Author: Lorenzo Battistini <lorenzo.battistini@xxxxxxxxxxx>
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published
+#    by the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################

=== added file 'textual_database_name/__openerp__.py'
--- textual_database_name/__openerp__.py	1970-01-01 00:00:00 +0000
+++ textual_database_name/__openerp__.py	2014-03-04 08:04:55 +0000
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2014 Agile Business Group sagl (<http://www.agilebg.com>)
+#    Author: Lorenzo Battistini <lorenzo.battistini@xxxxxxxxxxx>
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published
+#    by the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{
+    'name': 'Textual database name',
+    'description': """
+This module disables the selection of available databases and replaces the list
+with a textual field ('input' instead of 'select'). So, the user has to
+fill the database name and does not read the other databases names.
+
+
+How to use
+----------
+
+When you start your server add the name of this module in the "load" option:
+
+$./openerp-server --load=web,textual_database_name
+    """,
+    'author': 'Agile Business Group',
+    'version': '1.0',
+    'category': 'Authentication',
+    'website': 'http://www.agilebg.com',
+    'installable': True,
+    'auto_install': False,
+    'depends': [
+        'web',
+    ],
+    'data': [
+    ],
+    'js': [],
+    'qweb': ['static/src/xml/textual_database.xml'],
+}

=== added directory 'textual_database_name/i18n'
=== added directory 'textual_database_name/static'
=== added directory 'textual_database_name/static/src'
=== added directory 'textual_database_name/static/src/xml'
=== added file 'textual_database_name/static/src/xml/textual_database.xml'
--- textual_database_name/static/src/xml/textual_database.xml	1970-01-01 00:00:00 +0000
+++ textual_database_name/static/src/xml/textual_database.xml	2014-03-04 08:04:55 +0000
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<templates id="template" xml:space="preserve">
+
+    <t t-extend="Login.dblist">
+        <t t-jquery="select" t-operation="replace">
+            <input name="db" t-att-value="selected_db || ''"/>
+        </t>
+    </t>
+
+</templates>


Follow ups