From: P. Christeas Date: Thu, 1 Jul 2010 17:51:32 +0000 (+0300) Subject: Document_ftp: *only* serve databases that have the module installed. X-Git-Tag: 6.0.0-rc1-addons~69^2~354^2~48 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=abebb5c31194e86af9bf6326f4f6a4980f17be1c;p=odoo%2Fodoo.git Document_ftp: *only* serve databases that have the module installed. The document_ftp is not really a database-specific server, but a server-wide implementation. So, it could normally serve all the databases of the server, once one of them has it installed. Limit that and instead only serve the dbs that have the module marked as installed. bzr revid: p_christ@hol.gr-20100701175132-dydehiw5m6nnvcwy --- diff --git a/addons/document_ftp/ftpserver/abstracted_fs.py b/addons/document_ftp/ftpserver/abstracted_fs.py index 2b61ffd..48c57cf 100644 --- a/addons/document_ftp/ftpserver/abstracted_fs.py +++ b/addons/document_ftp/ftpserver/abstracted_fs.py @@ -88,7 +88,7 @@ class abstracted_fs(object): if not cr.fetchone(): continue - cr.execute("select id from ir_module_module where name like 'document%' and state='installed' ") + cr.execute("SELECT id FROM ir_module_module WHERE name = 'document_ftp' AND state='installed' ") res = cr.fetchone() if res and len(res): self.db_name_list.append(db_name)