diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2009-03-19 13:50:15 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2009-03-19 13:50:15 +0100 |
| commit | e2e8b1941ed49865646edec0f2908d3aa2516277 (patch) | |
| tree | b56842f73986a4d0873943403ab4d8fce5659dd1 /addons/document/ftpserver | |
| parent | 01c974e40da76c36f9f47102fcc5befab392cbb3 (diff) | |
| parent | 8f1d6918d24dd139e0d4340c6739a41b6ff6348a (diff) | |
[MERGE] Branch from Christophe Chauvat (Sylëam)
[IMP]
* Correct bug with locale, use string.ascii_letters instead of string.letters
* Remove mixing tabs with spaces (PEP8 compliant)
* Add UTF8 header in python file
* Add vim comment at the end of file
* Add license header that missing on many files
bzr revid: stephane@tinyerp.com-20090319125015-221hyuhyb9s0vfcq
Diffstat (limited to 'addons/document/ftpserver')
| -rw-r--r-- | addons/document/ftpserver/__init__.py | 23 | ||||
| -rw-r--r-- | addons/document/ftpserver/abstracted_fs.py | 3 | ||||
| -rw-r--r-- | addons/document/ftpserver/authorizer.py | 4 | ||||
| -rw-r--r-- | addons/document/ftpserver/ftpserver.py | 3 |
4 files changed, 31 insertions, 2 deletions
diff --git a/addons/document/ftpserver/__init__.py b/addons/document/ftpserver/__init__.py index dcac53d6061..35d1107ad81 100644 --- a/addons/document/ftpserver/__init__.py +++ b/addons/document/ftpserver/__init__.py @@ -1,3 +1,25 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved +# $Id$ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + import threading import ftpserver import authorizer @@ -31,3 +53,4 @@ class ftp_server(threading.Thread): ds = ftp_server() ds.start() +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/document/ftpserver/abstracted_fs.py b/addons/document/ftpserver/abstracted_fs.py index 9b8b78b6e8a..155c68ae515 100644 --- a/addons/document/ftpserver/abstracted_fs.py +++ b/addons/document/ftpserver/abstracted_fs.py @@ -1,3 +1,5 @@ +# -*- encoding: utf-8 -*- + import os import time from tarfile import filemode @@ -788,3 +790,4 @@ class abstracted_fs: yield "%s%s%s%s%s%s%s%s%s %s\r\n" %(type, size, perm, modify, create, mode, uid, gid, unique, basename) +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/document/ftpserver/authorizer.py b/addons/document/ftpserver/authorizer.py index fa45f0c3183..5a64ca8f7a0 100644 --- a/addons/document/ftpserver/authorizer.py +++ b/addons/document/ftpserver/authorizer.py @@ -1,4 +1,4 @@ -#import pooler +# -*- encoding: utf-8 -*- class authorizer: read_perms = "elr" @@ -68,4 +68,4 @@ class authorizer: """Return the user's quitting message.""" return 'Bye.' - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/document/ftpserver/ftpserver.py b/addons/document/ftpserver/ftpserver.py index 07f60344b74..ae0fc38e1e1 100644 --- a/addons/document/ftpserver/ftpserver.py +++ b/addons/document/ftpserver/ftpserver.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- encoding: utf-8 -*- # ftpserver.py # # pyftpdlib is released under the MIT license, reproduced below: @@ -3094,3 +3095,5 @@ def test(): if __name__ == '__main__': test() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
