Exemplo n.º 1
0
 def __init__(self, config, settings):
     defaults = parseSettings(config, settings)
     self.LOCALDOWNLOADPATH = defaults.get('localdownloadpath')
     self.REMOTEFILTER = defaults.get('remotefilter')
     self.SOURCEFOLDER = defaults.get('sourcefolder')
     self.REMOTEPATH = osPathFromString(settings.get('path'))
     self.DELETEAFTERDOWNLOAD = settings.get('deleteafterdownload')
Exemplo n.º 2
0
 def __init__(self, config, settings):
     defaults = parseSettings(config, settings)
     self.LOCALDOWNLOADPATH = defaults.get('localdownloadpath')
     self.REMOTEFILTER = defaults.get('remotefilter')
     self.SOURCEFOLDER = defaults.get('sourcefolder')
     self.REMOTEPATH = settings.get('path')
     self.PAYLOAD = {
         'email': settings.get('user'),
         'password': settings.get('auth')
     }
     self.BASEURL = settings.get('host', config.Get('carnegie_baseURL'))
     self.CONNURL = self.BASEURL + settings.get('path',
                                                config.Get('carnegie_path'))
     self.DEBUG = config.Get('debug')
Exemplo n.º 3
0
 def __init__(self, config, settings):
     defaults = parseSettings(config, settings)
     self.LOCALDOWNLOADPATH = defaults.get('localdownloadpath')
     self.REMOTEFILTER = defaults.get('remotefilter')
     self.SOURCEFOLDER = defaults.get('sourcefolder')
     self.REMOTEPATH = settings.get('path', '')
     self.CONNECTCONFIG = {}
     self.CONNECTCONFIG['chilkat_license'] = config.Get('chilkat_license')
     self.CONNECTCONFIG['host'] = settings.get('host')
     self.CONNECTCONFIG['port'] = settings.get('port', 990)
     self.CONNECTCONFIG['username'] = settings.get('user')
     self.CONNECTCONFIG['auth'] = settings.get('auth')
     self.CONNECTCONFIG['passive'] = settings.get('passive', False)
     self.CONNECTCONFIG['authtls'] = settings.get('authtls', True)
     self.CONNECTCONFIG['ssl'] = settings.get('ssl', False)
     self.CONNECTCONFIG['debug'] = config.Get('debug')
     self.CONNECTCONFIG['deleteafterdownload'] = settings.get(
         'deleteafterdownload')
Exemplo n.º 4
0
 def __init__(self, config, settings):
     defaults = parseSettings(config, settings)
     self.LOCALDOWNLOADPATH = defaults.get('localdownloadpath')
     self.REMOTEFILTER = defaults.get('remotefilter')
     self.SOURCEFOLDER = defaults.get('sourcefolder')
     self.REMOTEPATH = settings.get('path')
     self.CONNECTCONFIG = {}
     self.CONNECTCONFIG['debug'] = config.Get('debug')
     self.CONNECTCONFIG['chilkat_license'] = config.Get('chilkat_license')
     self.CONNECTCONFIG['hostkey'] = defaults.get('hostkey')
     self.CONNECTCONFIG['host'] = settings.get('host')
     self.CONNECTCONFIG['privatekey'] = defaults.get('privatekey')
     self.CONNECTCONFIG['key_auth'] = settings.get('key_auth')
     self.CONNECTCONFIG['username'] = settings.get('user')
     self.CONNECTCONFIG['auth'] = settings.get('auth')
     self.CONNECTCONFIG['port'] = settings.get('port', 22)
     self.CONNECTCONFIG['timeout'] = settings.get('timeout', 15000)
     self.CONNECTCONFIG['deleteafterdownload'] = settings.get(
         'deleteafterdownload')
Exemplo n.º 5
0
 def __init__( self, config, settings ):
     defaults = parseSettings( config, settings )        
     self.LOCALDOWNLOADPATH = defaults.get( 'localdownloadpath' )
     self.REMOTEFILTER = defaults.get( 'remotefilter' )
     self.SOURCEFOLDER = defaults.get( 'sourcefolder' )
     self.REMOTEPATH = settings.get( 'path' )
     self.CONNECTCONFIG = {}
     self.CONNECTCONFIG['debug'] = config.Get( 'debug' )     
     self.CONNECTCONFIG['host'] = settings.get( 'host' )
     self.CONNECTCONFIG['hostip'] = settings.get( 'hostip' )
     self.CONNECTCONFIG['user'] = settings.get( 'user' )
     self.CONNECTCONFIG['auth'] = settings.get( 'auth' )
     self.CONNECTCONFIG['clientname'] = settings.get( 'clientname' )
     self.CONNECTCONFIG['share'] = settings.get( 'share' )
     self.CONNECTCONFIG['port'] = settings.get( 'port', 445 )
     self.CONNECTCONFIG['domainname'] = settings.get( 'domainname', '' )
     self.CONNECTCONFIG['usentlmv2'] = settings.get( 'usentlmv2', True )
     self.CONNECTCONFIG['isdirectip'] = settings.get( 'usedirectip', True )
     self.CONNECTCONFIG['deleteafterdownload'] = settings.get( 'deleteafterdownload' )
Exemplo n.º 6
0
 def __init__(self, config, settings):
     defaults = parseSettings(config, settings)
     self.LOCALDOWNLOADPATH = defaults.get('localdownloadpath')
     self.REMOTEFILTER = defaults.get('remotefilter')
     self.SOURCEFOLDER = defaults.get('sourcefolder')
     self.REMOTEPATH = settings.get('path')
     self.JSONURL = URL('json', {
         'Accept': 'application/json',
         'Content-Type': 'application/json'
     })
     self.TEXTURL = URL('text')
     self.ZIPURL = URL('binary')
     baseURL = settings.get('host', config.Get('sat_baseURL'))
     self.LISTURL = baseURL + settings.get('list_path',
                                           config.Get('sat_list_path'))
     self.FILEURL = baseURL + settings.get('file_path',
                                           config.Get('sat_file_path'))
     payload = {}
     payload['username'] = settings.get('user')
     payload['password'] = settings.get('auth')
     self.PAYLOAD = json.dumps(payload)
     self.DEBUG = config.Get('debug')