コード例 #1
0
ファイル: ftpserver.py プロジェクト: Strangemother/ftp
def log(msg):
    _depwarn("pyftpdlib.ftpserver.log() is deprecated")
    logger.info(msg)
コード例 #2
0
ファイル: ftpserver.py プロジェクト: Strangemother/ftp
def logline(msg):
    _depwarn("pyftpdlib.ftpserver.logline() is deprecated")
    logger.debug(msg)
コード例 #3
0
ファイル: ftpserver.py プロジェクト: Strangemother/ftp
"""


from pyftpdlib.log import logger
from pyftpdlib.handlers import *  # NOQA
from pyftpdlib.authorizers import *  # NOQA
from pyftpdlib.servers import *  # NOQA

from pyftpdlib import _depwarn, __ver__  # NOQA

__all__ = ['proto_cmds', 'Error', 'log', 'logline', 'logerror',
           'DummyAuthorizer', 'AuthorizerError', 'FTPHandler', 'FTPServer',
           'PassiveDTP', 'ActiveDTP', 'DTPHandler', 'ThrottledDTPHandler',
           'FileProducer', 'BufferedIteratorProducer', 'AbstractedFS']

_depwarn("pyftpdlib.ftpserver module is deprecated")


class CallLater(object):
    def __init__(self, *args, **kwargs):
        _depwarn("CallLater is deprecated; use "
                 "pyftpdlib.ioloop.IOLoop.instance().call_later() instead")
        from pyftpdlib.ioloop import IOLoop
        IOLoop.instance().call_later(*args, **kwargs)


class CallEvery(object):
    def __init__(self, *args, **kwargs):
        _depwarn("CallEvery is deprecated; use "
                 "pyftpdlib.ioloop.IOLoop.instance().call_every() instead")
        from pyftpdlib.ioloop import IOLoop
コード例 #4
0
ファイル: ftpserver.py プロジェクト: Strangemother/ftp
 def __init__(self, *args, **kwargs):
     _depwarn("CallEvery is deprecated; use "
              "pyftpdlib.ioloop.IOLoop.instance().call_every() instead")
     from pyftpdlib.ioloop import IOLoop
     IOLoop.instance().call_every(*args, **kwargs)
コード例 #5
0
def logerror(msg):
    _depwarn("pyftpdlib.ftpserver.logline() is deprecated")
    logger.error(msg)
コード例 #6
0
ファイル: filesystems.py プロジェクト: Konubinix/pyftpdlib
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
#  ======================================================================

from pyftpdlib import _depwarn

_depwarn("pyftpdlib.contrib.filesystem module is deprecated; "
         "use pyftpdlib.filesystems instead")

try:
    from pyftpdlib.filesystems import UnixFilesystem
except ImportError:
    pass
コード例 #7
0
def log(msg):
    _depwarn("pyftpdlib.ftpserver.log() is deprecated")
    logger.info(msg)
コード例 #8
0
ファイル: __init__.py プロジェクト: betoborda/Pythonista
from pyftpdlib import _depwarn

_depwarn("pyftpdlib.contrib namespace is deprecated")
コード例 #9
0
from pyftpdlib.log import logger
from pyftpdlib.handlers import *
from pyftpdlib.authorizers import *
from pyftpdlib.servers import *

from pyftpdlib import _depwarn, __ver__

__all__ = [
    'proto_cmds', 'Error', 'log', 'logline', 'logerror', 'DummyAuthorizer',
    'AuthorizerError', 'FTPHandler', 'FTPServer', 'PassiveDTP', 'ActiveDTP',
    'DTPHandler', 'ThrottledDTPHandler', 'FileProducer',
    'BufferedIteratorProducer', 'AbstractedFS'
]

_depwarn("pyftpdlib.ftpserver module is deprecated")


class CallLater(object):
    def __init__(self, *args, **kwargs):
        _depwarn("CallLater is deprecated; use "
                 "pyftpdlib.ioloop.IOLoop.instance().call_later() instead")
        from pyftpdlib.ioloop import IOLoop
        IOLoop.instance().call_later(*args, **kwargs)


class CallEvery(object):
    def __init__(self, *args, **kwargs):
        _depwarn("CallEvery is deprecated; use "
                 "pyftpdlib.ioloop.IOLoop.instance().call_every() instead")
        from pyftpdlib.ioloop import IOLoop
コード例 #10
0
 def __init__(self, *args, **kwargs):
     _depwarn("CallEvery is deprecated; use "
              "pyftpdlib.ioloop.IOLoop.instance().call_every() instead")
     from pyftpdlib.ioloop import IOLoop
     IOLoop.instance().call_every(*args, **kwargs)
コード例 #11
0
ファイル: handlers.py プロジェクト: Konubinix/pyftpdlib
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
#  ======================================================================

from pyftpdlib import _depwarn

_depwarn("pyftpdlib.contrib.handlers module is deprecated; "
         "use pyftpdlib.handlers instead")

try:
    from pyftpdlib.handlers import (SSLConnection, TLS_FTPHandler,
                                    TLS_DTPHandler)
except ImportError:
    pass
コード例 #12
0
ファイル: filesystems.py プロジェクト: psychoone7/pyftpdlib
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
#  ======================================================================

from pyftpdlib import _depwarn

_depwarn("pyftpdlib.contrib.filesystem module is deprecated; "
         "use pyftpdlib.filesystems instead")

try:
    from pyftpdlib.filesystems import UnixFilesystem
except ImportError:
    pass
コード例 #13
0
ファイル: authorizers.py プロジェクト: Strangemother/ftp
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
#  ======================================================================

from pyftpdlib import _depwarn

_depwarn("pyftpdlib.contrib.authorizers module is deprecated; "
         "use pyftpdlib.authorizers instead")

try:
    from pyftpdlib.authorizers import (BaseUnixAuthorizer,  # NOQA
                                       UnixAuthorizer)
except ImportError:
    pass

try:
    from pyftpdlib.authorizers import (BaseWindowsAuthorizer,  # NOQA
                                       WindowsAuthorizer)
except ImportError:
    pass
コード例 #14
0
ファイル: ftpserver.py プロジェクト: Strangemother/ftp
def logerror(msg):
    _depwarn("pyftpdlib.ftpserver.logline() is deprecated")
    logger.error(msg)
コード例 #15
0
def logline(msg):
    _depwarn("pyftpdlib.ftpserver.logline() is deprecated")
    logger.debug(msg)
コード例 #16
0
ファイル: handlers.py プロジェクト: betoborda/Pythonista
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
#  ======================================================================

from pyftpdlib import _depwarn

_depwarn("pyftpdlib.contrib.handlers module is deprecated; "
         "use pyftpdlib.handlers instead")

try:
    from pyftpdlib.handlers import (
        SSLConnection,
        TLS_FTPHandler,  # NOQA
        TLS_DTPHandler)
except ImportError:
    pass
コード例 #17
0
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
#  ======================================================================

from pyftpdlib import _depwarn

_depwarn("pyftpdlib.contrib.authorizers module is deprecated; "
         "use pyftpdlib.authorizers instead")

try:
    from pyftpdlib.authorizers import BaseUnixAuthorizer, UnixAuthorizer
except ImportError:
    pass

try:
    from pyftpdlib.authorizers import BaseWindowsAuthorizer, WindowsAuthorizer
except ImportError:
    pass