Comment 0 for bug 1244721

Revision history for this message
Georges Racinet (gracinet) wrote :

It goes like this, and is really minor because it occurs in the final reporting of the total time spent:

  File "bin/upgrade_openerp", line 52, in <module>
    sys.exit(anybox.recipe.openerp.runtime.upgrade.upgrade('/srv/openerp/demosimon/zeproject/current_buildout/upgrade.py', 'run', '/srv/openerp/demosimon/zeproject/current_buildout/etc/openerp.cfg', '/srv/openerp/demosimon/zeproject/current_buildout'))
  File "/srv/openerp/eggs/anybox.recipe.openerp-1.8.0-py2.6.egg/anybox/recipe/openerp/runtime/upgrade.py", line 135, in upgrade
    ceil((datetime.utcnow() - start_time).total_seconds())
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'

indeed, total_seconds is new in python 2.6 (see http://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds)