Translate: fix import of superfluous ids.

bzr revid: p_christ@hol.gr-20090506213637-y473wcgc6qvxbdyc
This commit is contained in:
P. Christeas 2009-05-07 00:36:37 +03:00
parent 85ef2e1086
commit 2ccc626184
1 changed files with 2 additions and 0 deletions

View File

@ -713,6 +713,8 @@ def trans_load_data(db_name, fileobj, fileformat, lang, strict=False, lang_name=
# if the resource id (res_id) is in that list, use it,
# otherwise use the whole list
if not ids:
ids = []
ids = (dic['res_id'] in ids) and [dic['res_id']] or ids
for id in ids:
dic['res_id'] = id