Browse Source

[IMP] pep8

pull/90/head
Stéphane Bidoul 10 years ago
parent
commit
d56fc27615
  1. 17
      mis_builder/__init__.py
  2. 18
      mis_builder/__openerp__.py
  3. 17
      mis_builder/models/__init__.py
  4. 18
      mis_builder/models/mis_builder.py
  5. 17
      mis_builder/report/__init__.py
  6. 17
      mis_builder/report/mis_builder_xls.py
  7. 17
      mis_builder/tests/__init__.py
  8. 19
      mis_builder/tests/mis_builder_test.py
  9. 17
      mis_builder/wizard/__init__.py
  10. 17
      mis_builder/wizard/mis_builder_dashboard.py
  11. 17
      mis_builder_demo/__init__.py
  12. 18
      mis_builder_demo/__openerp__.py

17
mis_builder/__init__.py

@ -1,25 +1,26 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
from . import models from . import models
from . import wizard from . import wizard

18
mis_builder/__openerp__.py

@ -1,25 +1,27 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
{ {
'name': 'mis builder', 'name': 'mis builder',
'version': '0.1', 'version': '0.1',

17
mis_builder/models/__init__.py

@ -1,24 +1,25 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
from . import mis_builder from . import mis_builder

18
mis_builder/models/mis_builder.py

@ -1,26 +1,26 @@
# vim: set fileencoding=utf-8 :
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
from datetime import datetime, timedelta from datetime import datetime, timedelta
from dateutil import parser from dateutil import parser

17
mis_builder/report/__init__.py

@ -1,24 +1,25 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
from . import mis_builder_xls from . import mis_builder_xls

17
mis_builder/report/mis_builder_xls.py

@ -1,25 +1,26 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
import xlwt import xlwt
from openerp.report import report_sxw from openerp.report import report_sxw

17
mis_builder/tests/__init__.py

@ -1,25 +1,26 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
import mis_builder_test import mis_builder_test

19
mis_builder/tests/mis_builder_test.py

@ -1,25 +1,26 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
import openerp.tests.common as common import openerp.tests.common as common
from openerp.addons.mis_builder import models from openerp.addons.mis_builder import models
@ -78,4 +79,4 @@ class mis_builder_test(common.TransactionCase):
})]) })])
}, data) }, data)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

17
mis_builder/wizard/__init__.py

@ -1,24 +1,25 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
from . import mis_builder_dashboard from . import mis_builder_dashboard

17
mis_builder/wizard/mis_builder_dashboard.py

@ -1,25 +1,26 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
from openerp.osv import orm, fields from openerp.osv import orm, fields
from lxml import etree from lxml import etree

17
mis_builder_demo/__init__.py

@ -1,22 +1,23 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################

18
mis_builder_demo/__openerp__.py

@ -1,25 +1,27 @@
#==============================================================================
# =
# -*- encoding: utf-8 -*-
##############################################################################
#
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
# Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>) # Copyright (C) 2014 ACSONE SA/NV (<http://acsone.eu>)
# =
#
# This file is a part of mis_builder # This file is a part of mis_builder
# =
#
# mis_builder is free software: you can redistribute it and/or modify # mis_builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License v3 or later # it under the terms of the GNU Affero General Public License v3 or later
# as published by the Free Software Foundation, either version 3 of the # as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version. # License, or (at your option) any later version.
# =
#
# mis_builder is distributed in the hope that it will be useful, # mis_builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License v3 or later for more details. # GNU Affero General Public License v3 or later for more details.
# =
#
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# v3 or later along with this program. # v3 or later along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# =
#==============================================================================
#
##############################################################################
{ {
'name': 'mis builder demo', 'name': 'mis builder demo',
'version': '0.1', 'version': '0.1',

Loading…
Cancel
Save