From ef161ae572d01e919af7002d60ce4969d5502754 Mon Sep 17 00:00:00 2001 From: Sandy Date: Mon, 7 Jul 2014 13:09:26 -0400 Subject: [PATCH] Revert "[FIX] flake8" --- .coveragerc | 16 --- .gitignore | 56 --------- .travis.yml | 19 --- README.md | 12 -- web_ckeditor4/__init__.py | 1 + web_ckeditor4/__openerp__.py | 108 +++++++++--------- web_color/__init__.py | 8 +- web_color/__openerp__.py | 14 +-- web_export_view/__init__.py | 2 +- web_ir_actions_act_window_page/__openerp__.py | 16 +-- web_m2x_options/__openerp__.py | 11 +- web_nocreatedb/__openerp__.py | 6 +- web_search_alphabetic/__openerp__.py | 6 +- web_send_message_popup/__openerp__.py | 31 ++--- web_widget_float_formula/__openerp__.py | 6 +- 15 files changed, 107 insertions(+), 205 deletions(-) delete mode 100644 .coveragerc delete mode 100644 .gitignore delete mode 100644 .travis.yml delete mode 100644 README.md diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index cbd4a493..00000000 --- a/.coveragerc +++ /dev/null @@ -1,16 +0,0 @@ -# Config file .coveragerc - -[report] -include = - */OCA/web/* -omit = - */tests/* - *__init__.py - -# Regexes for lines to exclude from consideration -exclude_lines = - # Have to re-enable the standard pragma - pragma: no cover - - # Don't complain about null context checking - if context is None: diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 890ff010..00000000 --- a/.gitignore +++ /dev/null @@ -1,56 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -bin/ -build/ -develop-eggs/ -dist/ -eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.cache -nosetests.xml -coverage.xml - -# Translations -*.mo - -# Pycharm -.idea - -# Mr Developer -.mr.developer.cfg -.project -.pydevproject - -# Rope -.ropeproject - -# Sphinx documentation -docs/_build/ - -# Backup files -*~ -*.swp diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a0500a75..00000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -python: - - "2.7" - -virtualenv: - system_site_packages: true - -install: - - git clone https://github.com/gurneyalex/maintainer-quality-tools.git $HOME/maintainer-quality-tools - - export PATH=$HOME/maintainer-quality-tools/travis:$PATH - - travis_install_nightly 7.0 - - pip install coveralls flake8 - -script: - - travis_run_flake8 - - travis_run_tests 7.0 - -after_success: - coveralls diff --git a/README.md b/README.md deleted file mode 100644 index 95f48df5..00000000 --- a/README.md +++ /dev/null @@ -1,12 +0,0 @@ -[![Build Status](https://travis-ci.org/OCA/web.svg?branch=7.0)](https://travis-ci.org/OCA/web) -[![Coverage Status](https://coveralls.io/repos/OCA/web/badge.png?branch=7.0)](https://coveralls.io/r/OCA/web?branch=7.0) - -Web addons for Odoo -=================== - -This project aims to deal with modules related to the webclient of Odoo. You'll find modules that: - -- Add facilities to the UI -- Add widgets -- Ease the import/export features -- Generally add clientside functionality diff --git a/web_ckeditor4/__init__.py b/web_ckeditor4/__init__.py index fae962cc..a97ee816 100644 --- a/web_ckeditor4/__init__.py +++ b/web_ckeditor4/__init__.py @@ -19,3 +19,4 @@ # along with this program. If not, see . # ############################################################################## + diff --git a/web_ckeditor4/__openerp__.py b/web_ckeditor4/__openerp__.py index 7d4ab481..6465c7e7 100644 --- a/web_ckeditor4/__openerp__.py +++ b/web_ckeditor4/__openerp__.py @@ -51,60 +51,60 @@ #cd trunk #git checkout remotes/origin/release/4.1.x #and uncomment the lines below - #'static/lib/trunk/ckeditor.js', - #'static/lib/trunk/core/event.js', - #'static/lib/trunk/core/editor_basic.js', - #'static/lib/trunk/core/env.js', - #'static/lib/trunk/core/ckeditor_basic.js', - #'static/lib/trunk/core/dom.js', - #'static/lib/trunk/core/tools.js', - #'static/lib/trunk/core/dtd.js', - #'static/lib/trunk/core/dom/event.js', - #'static/lib/trunk/core/dom/domobject.js', - #'static/lib/trunk/core/dom/node.js', - #'static/lib/trunk/core/dom/window.js', - #'static/lib/trunk/core/dom/document.js', - #'static/lib/trunk/core/dom/nodelist.js', - #'static/lib/trunk/core/dom/element.js', - #'static/lib/trunk/core/dom/documentfragment.js', - #'static/lib/trunk/core/dom/walker.js', - #'static/lib/trunk/core/dom/range.js', - #'static/lib/trunk/core/dom/iterator.js', - #'static/lib/trunk/core/command.js', - #'static/lib/trunk/core/ckeditor_base.js', - #'static/lib/trunk/core/config.js', - #'static/lib/trunk/core/filter.js', - #'static/lib/trunk/core/focusmanager.js', - #'static/lib/trunk/core/keystrokehandler.js', - #'static/lib/trunk/core/lang.js', - #'static/lib/trunk/core/scriptloader.js', - #'static/lib/trunk/core/resourcemanager.js', - #'static/lib/trunk/core/plugins.js', - #'static/lib/trunk/core/ui.js', - #'static/lib/trunk/core/editor.js', - #'static/lib/trunk/core/htmlparser.js', - #'static/lib/trunk/core/htmlparser/basicwriter.js', - #'static/lib/trunk/core/htmlparser/node.js', - #'static/lib/trunk/core/htmlparser/comment.js', - #'static/lib/trunk/core/htmlparser/text.js', - #'static/lib/trunk/core/htmlparser/cdata.js', - #'static/lib/trunk/core/htmlparser/fragment.js', - #'static/lib/trunk/core/htmlparser/filter.js', - #'static/lib/trunk/core/htmldataprocessor.js', - #'static/lib/trunk/core/htmlparser/element.js', - #'static/lib/trunk/core/template.js', - #'static/lib/trunk/core/ckeditor.js', - #'static/lib/trunk/core/creators/inline.js', - #'static/lib/trunk/core/creators/themedui.js', - #'static/lib/trunk/core/editable.js', - #'static/lib/trunk/core/selection.js', - #'static/lib/trunk/core/style.js', - #'static/lib/trunk/core/dom/comment.js', - #'static/lib/trunk/core/dom/elementpath.js', - #'static/lib/trunk/core/dom/text.js', - #'static/lib/trunk/core/dom/rangelist.js', - #'static/lib/trunk/core/skin.js', - #'static/lib/trunk/core/_bootstrap.js', +# 'static/lib/trunk/ckeditor.js', +# 'static/lib/trunk/core/event.js', +# 'static/lib/trunk/core/editor_basic.js', +# 'static/lib/trunk/core/env.js', +# 'static/lib/trunk/core/ckeditor_basic.js', +# 'static/lib/trunk/core/dom.js', +# 'static/lib/trunk/core/tools.js', +# 'static/lib/trunk/core/dtd.js', +# 'static/lib/trunk/core/dom/event.js', +# 'static/lib/trunk/core/dom/domobject.js', +# 'static/lib/trunk/core/dom/node.js', +# 'static/lib/trunk/core/dom/window.js', +# 'static/lib/trunk/core/dom/document.js', +# 'static/lib/trunk/core/dom/nodelist.js', +# 'static/lib/trunk/core/dom/element.js', +# 'static/lib/trunk/core/dom/documentfragment.js', +# 'static/lib/trunk/core/dom/walker.js', +# 'static/lib/trunk/core/dom/range.js', +# 'static/lib/trunk/core/dom/iterator.js', +# 'static/lib/trunk/core/command.js', +# 'static/lib/trunk/core/ckeditor_base.js', +# 'static/lib/trunk/core/config.js', +# 'static/lib/trunk/core/filter.js', +# 'static/lib/trunk/core/focusmanager.js', +# 'static/lib/trunk/core/keystrokehandler.js', +# 'static/lib/trunk/core/lang.js', +# 'static/lib/trunk/core/scriptloader.js', +# 'static/lib/trunk/core/resourcemanager.js', +# 'static/lib/trunk/core/plugins.js', +# 'static/lib/trunk/core/ui.js', +# 'static/lib/trunk/core/editor.js', +# 'static/lib/trunk/core/htmlparser.js', +# 'static/lib/trunk/core/htmlparser/basicwriter.js', +# 'static/lib/trunk/core/htmlparser/node.js', +# 'static/lib/trunk/core/htmlparser/comment.js', +# 'static/lib/trunk/core/htmlparser/text.js', +# 'static/lib/trunk/core/htmlparser/cdata.js', +# 'static/lib/trunk/core/htmlparser/fragment.js', +# 'static/lib/trunk/core/htmlparser/filter.js', +# 'static/lib/trunk/core/htmldataprocessor.js', +# 'static/lib/trunk/core/htmlparser/element.js', +# 'static/lib/trunk/core/template.js', +# 'static/lib/trunk/core/ckeditor.js', +# 'static/lib/trunk/core/creators/inline.js', +# 'static/lib/trunk/core/creators/themedui.js', +# 'static/lib/trunk/core/editable.js', +# 'static/lib/trunk/core/selection.js', +# 'static/lib/trunk/core/style.js', +# 'static/lib/trunk/core/dom/comment.js', +# 'static/lib/trunk/core/dom/elementpath.js', +# 'static/lib/trunk/core/dom/text.js', +# 'static/lib/trunk/core/dom/rangelist.js', +# 'static/lib/trunk/core/skin.js', +# 'static/lib/trunk/core/_bootstrap.js', #end of ckeditor debug 'static/src/js/web_ckeditor4.js', ], diff --git a/web_color/__init__.py b/web_color/__init__.py index 9f3aa30b..7618af68 100644 --- a/web_color/__init__.py +++ b/web_color/__init__.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################ -# +# # OpenERP, Open Source Web Color # Copyright (C) 2012 Savoir-faire Linux (). # @@ -15,8 +15,8 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# +# along with this program. If not, see . +# # @author Étienne Beaudry Auger # -############################################################################## +############################################################################## \ No newline at end of file diff --git a/web_color/__openerp__.py b/web_color/__openerp__.py index 99d1ea27..9981c5dd 100644 --- a/web_color/__openerp__.py +++ b/web_color/__openerp__.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################ -# +# # OpenERP, Open Source Web Color # Copyright (C) 2012 Savoir-faire Linux (). # @@ -15,15 +15,15 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# +# along with this program. If not, see . +# # @author Étienne Beaudry Auger # ############################################################################## { 'name': "Web Color", 'author': "Savoir-faire Linux", - 'category': "Hidden", + 'category' : "Hidden", 'description': """ This module provides a color widget to display the color from the hexadecimal value of your field. @@ -31,14 +31,14 @@ 'version': "1.0", 'depends': ['web'], 'js': [ - 'static/src/js/lib.js', + 'static/src/js/lib.js', 'static/lib/really-simple-color-picker/jquery.colorPicker.js', ], 'css': [ 'static/src/css/color.css', 'static/lib/really-simple-color-picker/colorPicker.css', - ], - 'qweb': ['static/src/xml/lib.xml'], + ], + 'qweb' : ['static/src/xml/lib.xml'], 'installable': True, 'auto_install': False, 'web_preload': False, diff --git a/web_export_view/__init__.py b/web_export_view/__init__.py index 994ad368..09691964 100644 --- a/web_export_view/__init__.py +++ b/web_export_view/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # Copyright (C) 2012 Agile Business Group sagl () # Copyright (C) 2012 Domsense srl () # diff --git a/web_ir_actions_act_window_page/__openerp__.py b/web_ir_actions_act_window_page/__openerp__.py index 6e9fb90e..31054808 100644 --- a/web_ir_actions_act_window_page/__openerp__.py +++ b/web_ir_actions_act_window_page/__openerp__.py @@ -19,9 +19,9 @@ # ############################################################################## { - "name": "Window actions for client side paging", - "version": "1.0", - "author": "Therp BV", + "name" : "Window actions for client side paging", + "version" : "1.0", + "author" : "Therp BV", "complexity": "normal", "description": """ Client side paging @@ -37,10 +37,10 @@ or:: which trigger the form's controller to page into the requested direction. """, - "category": "Dependency", - "depends": [ + "category" : "Dependency", + "depends" : [ ], - "data": [ + "data" : [ ], "js": [ 'static/src/js/web_ir_actions_act_window_page.js', @@ -51,7 +51,7 @@ which trigger the form's controller to page into the requested direction. ], "auto_install": False, "installable": True, - "external_dependencies": { - 'python': [], + "external_dependencies" : { + 'python' : [], }, } diff --git a/web_m2x_options/__openerp__.py b/web_m2x_options/__openerp__.py index b62bc3f0..f428885e 100644 --- a/web_m2x_options/__openerp__.py +++ b/web_m2x_options/__openerp__.py @@ -3,7 +3,8 @@ { "name": 'web_m2x_options', "version": "0.1", - "description": """ + "description": +""" ===================================================== Add new options for many2one and many2manytags field: ===================================================== @@ -32,12 +33,14 @@ Thanks to: """, "depends": [ 'base', - 'web', + 'web', ], "js": [ 'static/src/js/form.js', ], "author": "Tuxservices", - "installable": True, - "active": False, + "installable" : True, + "active" : False, } + + diff --git a/web_nocreatedb/__openerp__.py b/web_nocreatedb/__openerp__.py index d1a98d20..55992b64 100644 --- a/web_nocreatedb/__openerp__.py +++ b/web_nocreatedb/__openerp__.py @@ -15,7 +15,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -41,11 +41,11 @@ When you start your server add the name of this module in the "load" option:: Then you can start your server without the -u and -d (just the first time you need update all to be sure all base and web will be fine). -With this option you can just take off and restart the server if you need to show +With this option you can just take off and restart the server if you need to show the link temporaly again. TODO: It should be great add a parameter in the database to hide it configurable -way and with web_preload: True, but BTW, in old versions of openerp it was a +way and with web_preload: True, but BTW, in old versions of openerp it was a parameter in the config file, i think as it is is fine for now. .. note:: This module probably will not be shown in your module list by default diff --git a/web_search_alphabetic/__openerp__.py b/web_search_alphabetic/__openerp__.py index d101c851..818d0057 100644 --- a/web_search_alphabetic/__openerp__.py +++ b/web_search_alphabetic/__openerp__.py @@ -22,8 +22,8 @@ { 'name': 'Web Alphabetical Search', - 'author': 'Serpent Consulting Services Pvt. Ltd.', - 'category': 'Web', + 'author' : 'Serpent Consulting Services Pvt. Ltd.', + 'category' : 'Web', 'website': 'http://www.serpentcs.com', 'description': """ OpenERP Web Search Extended. @@ -40,7 +40,7 @@ User also is able to change search field name instead of name field. 'css': [ 'static/src/css/web_search.css' ], - 'qweb': [ + 'qweb' : [ 'static/src/xml/web_search.xml', ], 'auto_install': False diff --git a/web_send_message_popup/__openerp__.py b/web_send_message_popup/__openerp__.py index d553a441..2cbc0557 100644 --- a/web_send_message_popup/__openerp__.py +++ b/web_send_message_popup/__openerp__.py @@ -19,15 +19,15 @@ # ############################################################################## -{ - 'name': 'Web Send Message as Popup', - 'version': '1.0', - 'author': 'Camptocamp', - 'maintainer': 'Camptocamp', - 'license': 'AGPL-3', - 'category': 'Hidden', - 'depends': ['web'], - 'description': """ +{'name': 'Web Send Message as Popup', + 'version': '1.0', + 'author': 'Camptocamp', + 'maintainer': 'Camptocamp', + 'license': 'AGPL-3', + 'category': 'Hidden', + 'depends': ['web', + ], + 'description': """ Web Send Message as Popup ========================= @@ -38,9 +38,12 @@ attachments and followers. This module changes the link 'Send a message' so it opens directly the full featured popup instead of the text field, avoiding an extra click -if the popup is always wanted.""", - 'website': 'http://www.camptocamp.com', - 'qweb': ['static/src/xml/mail.xml'], - 'installable': True, - 'auto_install': False, +if the popup is always wanted. + + """, + 'website': 'http://www.camptocamp.com', + 'qweb': ['static/src/xml/mail.xml', + ], + 'installable': True, + 'auto_install': False, } diff --git a/web_widget_float_formula/__openerp__.py b/web_widget_float_formula/__openerp__.py index 89373082..2cd5e8ab 100644 --- a/web_widget_float_formula/__openerp__.py +++ b/web_widget_float_formula/__openerp__.py @@ -22,11 +22,9 @@ Documentations: Technical informations: ------------------------ - * Overloads "instance.web.form.FieldFloat"; (so works for fields.integer & - fields.float); + * Overloads "instance.web.form.FieldFloat"; (so works for fields.integer & fields.float); * To compute, the module simply use the eval() javascript function; - * Rounding computation is not done by this module (The module has the same - behaviour if the user tips "=1/3" or if he tips "0.33[...]"); + * Rounding computation is not done by this module (The module has the same behaviour if the user tips "=1/3" or if he tips "0.33[...]"); * avoid code injonction by regexpr test: "=alert('security')" is not valid; Limits: