From 267e36268fcd3f1494610d88287759e6ab0e6768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 2 Jul 2008 12:25:25 +0200 Subject: [PATCH] Improve test in ids --- category.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/category.py b/category.py index 7059b37ca0..fa0878cc61 100644 --- a/category.py +++ b/category.py @@ -37,8 +37,7 @@ class Category(OSV): return dict(res) def name_get(self, cursor, user, ids, context=None): - - if not len(ids): + if not ids: return [] categories = self.browse(cursor, user, ids, context=context) res = []