diff options
| author | p_christeas <> | 2009-12-02 11:06:57 +0530 |
|---|---|---|
| committer | Harry (Open ERP) <hmo@tinyerp.com> | 2009-12-02 11:06:57 +0530 |
| commit | d5a68a7b692a6fa568c5fcebc580109afb5bb6d4 (patch) | |
| tree | 249998cdec5a69756180eb39f722b0b45d4c46a2 /addons/document/ftpserver/authorizer.py | |
| parent | 8d0b4a741816302a30efa28442563afefea8b9cd (diff) | |
[IMP]document : get improvement of document from xrg-addons branch who made nice improvement in document
bzr revid: hmo@tinyerp.com-20091202053657-4oflezyhbolu3xvo
Diffstat (limited to 'addons/document/ftpserver/authorizer.py')
| -rw-r--r-- | addons/document/ftpserver/authorizer.py | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/addons/document/ftpserver/authorizer.py b/addons/document/ftpserver/authorizer.py index afa36680009..5a64ca8f7a0 100644 --- a/addons/document/ftpserver/authorizer.py +++ b/addons/document/ftpserver/authorizer.py @@ -1,26 +1,4 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# -############################################################################## - -import pooler -from service import security +# -*- encoding: utf-8 -*- class authorizer: read_perms = "elr" @@ -69,7 +47,7 @@ class authorizer: paths = path.split('/') if not len(paths)>2: return True - db_name = paths[1] + db_name = paths[1] db,pool = pooler.get_db_and_pool(db_name) res = security.login(db_name, username, self.password) return bool(res) |
