From 53cafe979fc3e6055e6fdfc29ccc025195ffcffd Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Thu, 14 Feb 2008 15:08:10 +0100 Subject: [PATCH] Fix: use default value when no domain is provided on a webdav directory --- trytond/webdav/webdav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/webdav/webdav.py b/trytond/webdav/webdav.py index eee0fe337b..a63e0397b8 100644 --- a/trytond/webdav/webdav.py +++ b/trytond/webdav/webdav.py @@ -76,7 +76,7 @@ class Directory(OSV): if directory.model: model_obj = self.pool.get(directory.model.model) model_ids = model_obj.search(cursor, user, - eval(directory.domain), context=context) + eval(directory.domain or "[]"), context=context) for child_id, child_name in model_obj.name_get(cursor, user, model_ids, context=context): res.append(child_name + '-' + str(child_id))