Merge lp:~vauxoo/web-addons/7.0-nocreatedb-link into lp:~webaddons-core-editors/web-addons/7.0

Proposed by Nhomar - Vauxoo
Status: Superseded
Proposed branch: lp:~vauxoo/web-addons/7.0-nocreatedb-link
Merge into: lp:~webaddons-core-editors/web-addons/7.0
Diff against target: 98 lines (+81/-0)
2 files modified
web_nocreatedb/__openerp__.py (+66/-0)
web_nocreatedb/static/src/xml/web_nocreatedb.xml (+15/-0)
To merge this branch: bzr merge lp:~vauxoo/web-addons/7.0-nocreatedb-link
Reviewer Review Type Date Requested Status
Nhomar - Vauxoo Needs Resubmitting
Stefan Rijnhart (Opener) Needs Fixing
Review via email: mp+164680@code.launchpad.net

This proposal has been superseded by a proposal from 2013-05-25.

Description of the change

Just hide the createdb link from the login page.

THis is a common feature asked by almst all customers, it should be greate in an MP to the core, but I think it should be reviewed by us.

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Was going to ask you to remove *just* the offensive link but that would leave you with a silly '|' sign under the login window, so I approve of overwriting the div.

Nits:
- Please fix the copyright message in __openerp__.py. You do not have to confirm the copyright of OpenERP SA on OpenERP itself (esp. only up until 2009 ;-). Just establish your own copyright on this OpenERP *module*. Remove the first blank line of the file. I'd also be interested to hear about the "Financed and Planified" thing!

- Please add a copyright message in the javascript file

review: Needs Fixing
7. By Nhomar - Vauxoo

[FIX] Licence mentioning to OpenERP, SA is not necesary.
[IMP] Leak of doc can not be in a community module, improving this.

8. By Nhomar - Vauxoo

[ADD] Licence to xml file

9. By Nhomar - Vauxoo

[MERGE]

10. By Nhomar - Vauxoo

[FIX] Licence was not right in the __openerp__.py

11. By Nhomar - Vauxoo

[REM] Unused file

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Hello.

1.- The licence was fixed.
2.- About the "Financed and Planified":

We in vauxoo make a lot of modules day by day, some times we dont remember why we develop something, and what customer is using it, this is the "Why" the "Planified Part" to know who planify something.

About the "Financed Part", we sign contract with our customers where we encourage "Almost in a mandatory way" to allow us to put EVERYTHING as free software, some of them ask us make a public mention at least with the "Financed By " part, to be sure they take the credit for them investment in improve OpenERP.

About the coded by: It is so frequent we dont remember who make something and we always put this info to be sure inside Vauxoo who is the best person to help in something.

In this specific case, i just took my template of Licence and I forgot clean it, if somebody in the community is against this information on the licence I can remove it.

Regards.

review: Needs Resubmitting
12. By Nhomar - Vauxoo

[FIX] Correcting who really make the devel ;-)

13. By Nhomar - Vauxoo

[FIX] Take off the last part of the GPL stuff

14. By Nhomar - Vauxoo

[FIX] Licence without bad words.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'web_nocreatedb'
2=== added file 'web_nocreatedb/__init__.py'
3=== added file 'web_nocreatedb/__openerp__.py'
4--- web_nocreatedb/__openerp__.py 1970-01-01 00:00:00 +0000
5+++ web_nocreatedb/__openerp__.py 2013-05-25 05:44:25 +0000
6@@ -0,0 +1,66 @@
7+# -*- coding: utf-8 -*-
8+##############################################################################
9+# Financed and Planified by Vauxoo
10+# developed by: tulio@vauxoo.com
11+#
12+# This program is free software: you can redistribute it and/or modify
13+# it under the terms of the Licence:
14+#
15+# WTFPL – Do What the Fuck You Want to Public License
16+#
17+# This program is distributed in the hope that it will be useful,
18+# but WITHOUT ANY WARRANTY; without even the implied warranty of
19+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+# GNU General Public License for more details.
21+#
22+# You should have received a copy of the GNU General Public License
23+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24+##############################################################################
25+
26+{
27+ 'name': "NO create database link",
28+ 'author': "Vauxoo",
29+ 'category': "Web",
30+ 'website': "http://vauxoo.com",
31+ 'licence': "WTFPL",
32+ 'description': """
33+After install this module, you will not see anymore the
34+"Manage Databases" link in login screen.
35+
36+See the image bellow:
37+
38+.. image:: web_nocreatedb/static/src/img/screen.png
39+
40+How to use:
41+
42+When you start your server add the name of this module in the "load" option::
43+
44+ $./openerp-server --load=web,web_nocreatedb -u all -d database
45+
46+Then you can start your server without the -u and -d (just the first time you
47+need update all to be sure all base and web will be fine).
48+
49+With this option you can just take off and restart the server if you need to show
50+the link temporaly again.
51+
52+TODO: It should be great add a parameter in the database to hide it configurable
53+way and with web_preload: True, but BTW, in old versions of openerp it was a
54+parameter in the config file, i think as it is is fine for now.
55+
56+.. note:: This module probably will not be shown in your module list by default
57+You should create a menu to see "All modules without filter.
58+ """,
59+ 'version': "1.0",
60+ 'depends': [
61+ 'web',
62+ ],
63+ 'js': [
64+ ],
65+ 'css': [
66+ ],
67+ 'qweb': [
68+ 'static/src/xml/web_nocreatedb.xml',
69+ ],
70+ 'installable': True,
71+ 'auto_install': False,
72+}
73
74=== added directory 'web_nocreatedb/static'
75=== added directory 'web_nocreatedb/static/src'
76=== added directory 'web_nocreatedb/static/src/img'
77=== added file 'web_nocreatedb/static/src/img/screen.png'
78Binary files web_nocreatedb/static/src/img/screen.png 1970-01-01 00:00:00 +0000 and web_nocreatedb/static/src/img/screen.png 2013-05-25 05:44:25 +0000 differ
79=== added directory 'web_nocreatedb/static/src/xml'
80=== added file 'web_nocreatedb/static/src/xml/web_nocreatedb.xml'
81--- web_nocreatedb/static/src/xml/web_nocreatedb.xml 1970-01-01 00:00:00 +0000
82+++ web_nocreatedb/static/src/xml/web_nocreatedb.xml 2013-05-25 05:44:25 +0000
83@@ -0,0 +1,15 @@
84+<?xml version="1.0" encoding="UTF-8"?>
85+<!--
86+
87+ Licence: WTFPL – Do What the Fuck You Want to Public License
88+ More Information: http://www.wtfpl.net/
89+-->
90+<templates id="template" xml:space="preserve">
91+ <t t-extend="Login">
92+ <t t-jquery="div[class=oe_login_footer]" t-operation="replace">
93+ <div class="oe_login_footer">
94+ <a href="http://www.openerp.com" target="_blank">Powered by <span>OpenERP</span></a>
95+ </div>
96+ </t>
97+ </t>
98+</templates>

Subscribers

People subscribed via source and target branches