credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #00017
[Merge] lp:~credativ/openobject-server/trunk-fix-indentation into lp:openobject-server
Dmitrijs Ledkovs (credativ) has proposed merging lp:~credativ/openobject-server/trunk-fix-indentation into lp:openobject-server.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~credativ/openobject-server/trunk-fix-indentation/+merge/69925
Fix indentation error in a file, because my editor complains.
--
https://code.launchpad.net/~credativ/openobject-server/trunk-fix-indentation/+merge/69925
Your team Credativ is subscribed to branch lp:~credativ/openobject-server/trunk-fix-indentation.
=== modified file 'openerp/tools/convert.py'
--- openerp/tools/convert.py 2011-06-24 13:33:35 +0000
+++ openerp/tools/convert.py 2011-07-31 14:06:00 +0000
@@ -883,16 +883,16 @@
for n in de.findall('./data'):
for rec in n:
- if rec.tag in self._tags:
- try:
- self._tags[rec.tag](self.cr, rec, n)
- except:
- self.__logger.error('Parse error in %s:%d: \n%s',
- rec.getroottree().docinfo.URL,
- rec.sourceline,
- etree.tostring(rec).strip(), exc_info=True)
- self.cr.rollback()
- raise
+ if rec.tag in self._tags:
+ try:
+ self._tags[rec.tag](self.cr, rec, n)
+ except:
+ self.__logger.error('Parse error in %s:%d: \n%s',
+ rec.getroottree().docinfo.URL,
+ rec.sourceline,
+ etree.tostring(rec).strip(), exc_info=True)
+ self.cr.rollback()
+ raise
return True
def __init__(self, cr, module, idref, mode, report=None, noupdate=False):
Follow ups