From 9b4d0613a68024fe9474f2e0e613f957a54be21b Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers <fp@tinyerp.com> Date: Thu, 5 Feb 2009 18:30:32 +0100 Subject: [PATCH] modifs bzr revid: fp@tinyerp.com-20090205173032-6hos06o1pq1m3ukk --- addons/document/document.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/document/document.py b/addons/document/document.py index 84a13af5564e..36d71c27a82c 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -513,7 +513,11 @@ class document_file(osv.osv): try: path = self._get_filestore(cr) if not os.path.isdir(path): - os.makedirs(path) + try: + os.makedirs(path) + except: + raise except_orm('Permission Denied !', 'You do not permissions to write on the server side.') + flag = None # This can be improved for dirs in os.listdir(path): -- GitLab