summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2011-04-08 14:23:24 +0300
committerP. Christeas <p_christ@hol.gr>2011-04-08 14:23:24 +0300
commit9e44cd5bfe1e1fe30d0e1f98799fd7dc7a6dad6e (patch)
tree760cc33d2a4fb0c1f436fbf040df1814aff508df
parenta0507fe0db74f5e72100cc866dd53dbe3736b90b (diff)
all: Fix execute permission and shebang at files
Non-standalone python scripts shall not have a shebang. Others will need to be executable. (cherry picked from commit 6ec513d17cafcdd235b4805363d3cd6daa494f2f) bzr revid: p_christ@hol.gr-20110408112324-nc781po7efhjye21
-rw-r--r--addons/account/report/account_tax_code.py1
-rw-r--r--addons/account/wizard/account_change_currency.py1
-rwxr-xr-x[-rw-r--r--]addons/base_report_designer/plugin/openerp_report_designer/bin/OOo_run.sh0
-rwxr-xr-x[-rw-r--r--]addons/document/odt2txt.py0
-rwxr-xr-x[-rw-r--r--]addons/document/test_cindex.py0
-rwxr-xr-x[-rw-r--r--]addons/document_ftp/ftpserver/ftpserver.py0
-rwxr-xr-x[-rw-r--r--]addons/document_webdav/test_davclient.py0
-rwxr-xr-x[-rw-r--r--]addons/email_template/html2text.py10
-rw-r--r--addons/fetchmail/__init__.py1
-rw-r--r--addons/fetchmail/__openerp__.py1
-rw-r--r--addons/hr_payroll/report/__init__.py1
-rw-r--r--addons/hr_payroll/report/report_emp_salary_structure.py8
-rw-r--r--addons/hr_payroll/report/report_employees_detail.py2
-rw-r--r--addons/hr_payroll/report/report_payroll_advice.py3
-rw-r--r--addons/hr_payroll/report/report_payroll_register.py3
-rw-r--r--addons/hr_payroll/report/report_payslip.py1
-rw-r--r--addons/hr_payroll/report/report_year_salary.py2
-rw-r--r--[-rwxr-xr-x]addons/l10n_ch/readme.txt0
-rw-r--r--[-rwxr-xr-x]addons/l10n_de/i18n/pt_BR.po0
-rw-r--r--[-rwxr-xr-x]addons/l10n_de/i18n/zh_CN.po0
-rw-r--r--[-rwxr-xr-x]addons/l10n_de/i18n/zh_TW.po0
-rwxr-xr-x[-rw-r--r--]addons/mail_gateway/scripts/openerp_mailgate/openerp_mailgate.py0
-rw-r--r--[-rwxr-xr-x]addons/sale_layout/i18n/fr.po0
-rw-r--r--[-rwxr-xr-x]addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js0
-rwxr-xr-x[-rw-r--r--]addons/wiki/web/widgets/rss/feedparser.py0
25 files changed, 7 insertions, 27 deletions
diff --git a/addons/account/report/account_tax_code.py b/addons/account/report/account_tax_code.py
index 86d3128cfe7..56895987b45 100644
--- a/addons/account/report/account_tax_code.py
+++ b/addons/account/report/account_tax_code.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
#
diff --git a/addons/account/wizard/account_change_currency.py b/addons/account/wizard/account_change_currency.py
index d915a1cd34b..4a4209dc757 100644
--- a/addons/account/wizard/account_change_currency.py
+++ b/addons/account/wizard/account_change_currency.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- encoding: utf-8 -*-
##############################################################################
#
diff --git a/addons/base_report_designer/plugin/openerp_report_designer/bin/OOo_run.sh b/addons/base_report_designer/plugin/openerp_report_designer/bin/OOo_run.sh
index a22ff96cf53..a22ff96cf53 100644..100755
--- a/addons/base_report_designer/plugin/openerp_report_designer/bin/OOo_run.sh
+++ b/addons/base_report_designer/plugin/openerp_report_designer/bin/OOo_run.sh
diff --git a/addons/document/odt2txt.py b/addons/document/odt2txt.py
index 9ca9b6e596f..9ca9b6e596f 100644..100755
--- a/addons/document/odt2txt.py
+++ b/addons/document/odt2txt.py
diff --git a/addons/document/test_cindex.py b/addons/document/test_cindex.py
index 05101a7a491..05101a7a491 100644..100755
--- a/addons/document/test_cindex.py
+++ b/addons/document/test_cindex.py
diff --git a/addons/document_ftp/ftpserver/ftpserver.py b/addons/document_ftp/ftpserver/ftpserver.py
index bd727427541..bd727427541 100644..100755
--- a/addons/document_ftp/ftpserver/ftpserver.py
+++ b/addons/document_ftp/ftpserver/ftpserver.py
diff --git a/addons/document_webdav/test_davclient.py b/addons/document_webdav/test_davclient.py
index b4317282c6a..b4317282c6a 100644..100755
--- a/addons/document_webdav/test_davclient.py
+++ b/addons/document_webdav/test_davclient.py
diff --git a/addons/email_template/html2text.py b/addons/email_template/html2text.py
index af7848fee2d..2479843777a 100644..100755
--- a/addons/email_template/html2text.py
+++ b/addons/email_template/html2text.py
@@ -444,11 +444,11 @@ if __name__ == "__main__":
encoding = 'utf8'
if len(sys.argv) > 2:
encoding = sys.argv[2]
- f = open(arg, 'r')
- try:
- data = f.read().decode(encoding)
- finally:
- f.close()
+ f = open(arg, 'r')
+ try:
+ data = f.read().decode(encoding)
+ finally:
+ f.close()
else:
data = sys.stdin.read().decode('utf8')
wrapwrite(html2text(data, baseurl))
diff --git a/addons/fetchmail/__init__.py b/addons/fetchmail/__init__.py
index d58bfd1d81b..f9c384ce103 100644
--- a/addons/fetchmail/__init__.py
+++ b/addons/fetchmail/__init__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
#
diff --git a/addons/fetchmail/__openerp__.py b/addons/fetchmail/__openerp__.py
index 6d72f6ea917..29029d2cc0e 100644
--- a/addons/fetchmail/__openerp__.py
+++ b/addons/fetchmail/__openerp__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
#
diff --git a/addons/hr_payroll/report/__init__.py b/addons/hr_payroll/report/__init__.py
index 3113f281326..f7e464d3129 100644
--- a/addons/hr_payroll/report/__init__.py
+++ b/addons/hr_payroll/report/__init__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
diff --git a/addons/hr_payroll/report/report_emp_salary_structure.py b/addons/hr_payroll/report/report_emp_salary_structure.py
index 0da09d16562..28fdb6dec45 100644
--- a/addons/hr_payroll/report/report_emp_salary_structure.py
+++ b/addons/hr_payroll/report/report_emp_salary_structure.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
@@ -89,10 +88,3 @@ class salary_structure_report(report_sxw.rml_parse):
report_sxw.report_sxw('report.salary.structure', 'hr.employee', 'hr_payroll/report/report_emp_salary_structure.rml', parser=salary_structure_report)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
-
-
-
-
-
-
diff --git a/addons/hr_payroll/report/report_employees_detail.py b/addons/hr_payroll/report/report_employees_detail.py
index 0e1451e469c..522e36e742f 100644
--- a/addons/hr_payroll/report/report_employees_detail.py
+++ b/addons/hr_payroll/report/report_employees_detail.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
@@ -249,4 +248,3 @@ class employees_salary_report(report_sxw.rml_parse):
report_sxw.report_sxw('report.employees.salary', 'hr.payslip', 'hr_payroll/report/report_employees_detail.rml', parser=employees_salary_report,header='internal landscape')
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/hr_payroll/report/report_payroll_advice.py b/addons/hr_payroll/report/report_payroll_advice.py
index 5ac20d91d71..7d8c6fd953c 100644
--- a/addons/hr_payroll/report/report_payroll_advice.py
+++ b/addons/hr_payroll/report/report_payroll_advice.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
@@ -78,4 +77,4 @@ class payroll_advice_report(report_sxw.rml_parse):
report_sxw.report_sxw('report.payroll.advice', 'hr.payroll.advice', 'hr_payroll/report/report_payroll_advice.rml', parser=payroll_advice_report)
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/hr_payroll/report/report_payroll_register.py b/addons/hr_payroll/report/report_payroll_register.py
index 9410a4eedb2..96dde962074 100644
--- a/addons/hr_payroll/report/report_payroll_register.py
+++ b/addons/hr_payroll/report/report_payroll_register.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
@@ -106,4 +105,4 @@ report_sxw.report_sxw(
parser=report_payroll_register
)
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/hr_payroll/report/report_payslip.py b/addons/hr_payroll/report/report_payslip.py
index d5cd6532251..78e6ee2ff64 100644
--- a/addons/hr_payroll/report/report_payslip.py
+++ b/addons/hr_payroll/report/report_payslip.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
diff --git a/addons/hr_payroll/report/report_year_salary.py b/addons/hr_payroll/report/report_year_salary.py
index bc7ac8fc93a..4c5a506d2d3 100644
--- a/addons/hr_payroll/report/report_year_salary.py
+++ b/addons/hr_payroll/report/report_year_salary.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#-*- coding:utf-8 -*-
##############################################################################
@@ -119,4 +118,3 @@ class year_salary_report(report_sxw.rml_parse):
report_sxw.report_sxw('report.year.salary', 'hr.payslip', 'hr_payroll/report/report_year_report.rml', parser=year_salary_report,header='internal landscape')
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/l10n_ch/readme.txt b/addons/l10n_ch/readme.txt
index c02e5d27103..c02e5d27103 100755..100644
--- a/addons/l10n_ch/readme.txt
+++ b/addons/l10n_ch/readme.txt
diff --git a/addons/l10n_de/i18n/pt_BR.po b/addons/l10n_de/i18n/pt_BR.po
index 688e31e9622..688e31e9622 100755..100644
--- a/addons/l10n_de/i18n/pt_BR.po
+++ b/addons/l10n_de/i18n/pt_BR.po
diff --git a/addons/l10n_de/i18n/zh_CN.po b/addons/l10n_de/i18n/zh_CN.po
index 688e31e9622..688e31e9622 100755..100644
--- a/addons/l10n_de/i18n/zh_CN.po
+++ b/addons/l10n_de/i18n/zh_CN.po
diff --git a/addons/l10n_de/i18n/zh_TW.po b/addons/l10n_de/i18n/zh_TW.po
index 688e31e9622..688e31e9622 100755..100644
--- a/addons/l10n_de/i18n/zh_TW.po
+++ b/addons/l10n_de/i18n/zh_TW.po
diff --git a/addons/mail_gateway/scripts/openerp_mailgate/openerp_mailgate.py b/addons/mail_gateway/scripts/openerp_mailgate/openerp_mailgate.py
index 204cb2d5d03..204cb2d5d03 100644..100755
--- a/addons/mail_gateway/scripts/openerp_mailgate/openerp_mailgate.py
+++ b/addons/mail_gateway/scripts/openerp_mailgate/openerp_mailgate.py
diff --git a/addons/sale_layout/i18n/fr.po b/addons/sale_layout/i18n/fr.po
index e7fd5e3bdfd..e7fd5e3bdfd 100755..100644
--- a/addons/sale_layout/i18n/fr.po
+++ b/addons/sale_layout/i18n/fr.po
diff --git a/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js b/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js
index 741f4896fe9..741f4896fe9 100755..100644
--- a/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js
+++ b/addons/thunderbird/plugin/openerp_plugin/defaults/preferences/tiny.js
diff --git a/addons/wiki/web/widgets/rss/feedparser.py b/addons/wiki/web/widgets/rss/feedparser.py
index 6f30574d300..6f30574d300 100644..100755
--- a/addons/wiki/web/widgets/rss/feedparser.py
+++ b/addons/wiki/web/widgets/rss/feedparser.py