~invitu/openerp-mgmtsystem/7-0_fix_security

« back to all changes in this revision

Viewing changes to mgmtsystem_audit/migrations/7.0.1.0/post-migration.py

  • Committer: Maxime Chambreuil
  • Date: 2013-08-29 19:45:45 UTC
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: maxime.chambreuil@savoirfairelinux.com-20130829194545-ohxyf9pl22x05i0q
[FIX] PEP8 compliance after running flake8

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#
20
20
##############################################################################
21
21
 
22
 
import os
23
 
from osv import osv
24
22
import logging
25
23
 
26
24
logger = logging.getLogger('upgrade')
27
25
 
 
26
 
28
27
def migrate(cr, version):
29
28
    logger.info("Migrating mgmtsystem_audit from version %s", version)
30
 
 
31
29
    logger.info("Updating state flags")
32
30
    cr.execute("update mgmtsystem_audit set state = 'open' where state = 'o'")
33
31
    cr.execute("update mgmtsystem_audit set state = 'done' where state = 'c'")
34
 
 
35
32
    logger.info("mgmtsystem_audit update... done!")