projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9565e05
)
[IMP]:wiki 'in' to 'ANY'
author
nch@tinyerp.com
<>
Mon, 23 Nov 2009 13:17:35 +0000
(18:47 +0530)
committer
nch@tinyerp.com
<>
Mon, 23 Nov 2009 13:17:35 +0000
(18:47 +0530)
bzr revid: nch@tinyerp.com-
20091123131735
-mcsxnr7jj27b93k7
addons/wiki/wizard/make_index.py
patch
|
blob
|
history
diff --git
a/addons/wiki/wizard/make_index.py
b/addons/wiki/wizard/make_index.py
index
aa40837
..
b373741
100644
(file)
--- a/
addons/wiki/wizard/make_index.py
+++ b/
addons/wiki/wizard/make_index.py
@@
-34,7
+34,7
@@
def wiki_do_index(self, cr, uid, data, context):
ids = data['ids']
pool = pooler.get_pool(cr.dbname)
wiki_pool = pool.get('wiki.wiki')
- cr.execute("Select id, section from wiki_wiki where id in %s order by section " ,(tuple(ids),))
+ cr.execute("Select id, section from wiki_wiki where id = ANY(%s) order by section " ,(ids,))
lst0 = cr.fetchall()
lst = []
ids = {}