FIXed merging bugs

bzr revid: hda@tinyerp.com-20100113125341-69djvqrd7rkn6wj9
This commit is contained in:
HDA (OpenERP) 2010-01-13 18:23:41 +05:30
parent d5cd014da1
commit dadc20e9d1
3 changed files with 4 additions and 6 deletions

View File

@ -2414,10 +2414,9 @@ class orm(orm_template):
raise except_orm(_('AccessError'),
_('You try to bypass an access rule while reading (Document type: %s).') % self._description)
else:
cr.execute('SELECT %s FROM \"%s\" WHERE id = ANY (%%s) ORDER BY %s' % \
(','.join(fields_pre2 + ['id']), self._table,
','.join(['%s' for x in sub_ids]),
order_by), sub_ids)
cr.execute('SELECT %s FROM \"%s\" WHERE id = ANY (%%s) ORDER BY %s' %
(','.join(fields_pre2 + ['id']), self._table,
order_by), (sub_ids,))
res.extend(cr.dictfetchall())
else:
res = map(lambda x: {'id': x}, ids)

View File

@ -96,7 +96,7 @@ class db(netsvc.ExportService):
serv.actions[id]['progress'] = 0
clean = False
cr = sql_db.db_connect(db_name).cursor()
# tools.init_db(cr)
tools.init_db(cr)
cr.commit()
cr.close()
cr = None

View File

@ -166,7 +166,6 @@ class configmanager(object):
group.add_option("--db_port", dest="db_port", help="specify the database port", type="int")
group.add_option("--db_maxconn", dest="db_maxconn", default='64',
help="specify the the maximum number of physical connections to posgresql")
group.add_option("--list_db", dest="list_db", default=False, help="This option hides Database list for security purpose:\n \'False\' value disables listing of Databases")
group.add_option("-P", "--import-partial", dest="import_partial",
help="Use this for big data importation, if it crashes you will be able to continue at the current state. Provide a filename to store intermediate importation states.", default=False)
parser.add_option_group(group)