swarmlib/connect/schemes/local.py
author Sam Hart <criswellious@gmail.com>
Sun Apr 06 22:20:27 2008 -0400 (4 years ago)
changeset 266 c5c785fec243
parent 258abfe632d9cc3
child 267f6e82d635465
permissions -rw-r--r--
Add base scheme by which other connection schemes are derived
criswellious@258
     1
# Copyright 2007 Sam Hart
criswellious@258
     2
#
criswellious@258
     3
# This program is free software; you can redistribute it and/or modify
criswellious@258
     4
# it under the terms of the GNU General Public License as published by
criswellious@258
     5
# the Free Software Foundation; either version 2 of the License, or
criswellious@258
     6
# (at your option) any later version.
criswellious@258
     7
#
criswellious@258
     8
# This program is distributed in the hope that it will be useful,
criswellious@258
     9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
criswellious@258
    10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
criswellious@258
    11
# GNU General Public License for more details.
criswellious@258
    12
#
criswellious@258
    13
# You should have received a copy of the GNU General Public License
criswellious@258
    14
# along with this program; if not, write to the Free Software
criswellious@258
    15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
criswellious@258
    16
#
criswellious@258
    17
# Author: Sam Hart
criswellious@258
    18
criswellious@258
    19
"""
criswellious@258
    20
Local connections
criswellious@258
    21
"""
criswellious@258
    22
criswellious@266
    23
from swarmlib.connect.base_schema import BaseScheme
criswellious@266
    24
criswellious@266
    25
class Local(BaseScheme):
criswellious@258
    26
    def __init__(self, parsed_url, config, log, force=False):
criswellious@258
    27
        self._parsed_url = parsed_url
criswellious@258
    28
        self._config = config
criswellious@258
    29
        self._force = force
criswellious@258
    30
        self._logger = log.get_logger("Local")