aurorepass/cpasswords/clientlib.py
2015-06-03 19:52:02 +02:00

25 lines
536 B
Python

# -*- coding: utf-8 -*-
"""Client class definition for cpasswords protocol.
(WIP)
"""
from cpasswords import client as _old_client
class Client(object):
"""A client connection."""
verbose = False
def __init__(self, serverdata):
"""
serverdata should be a classic dict object (from eg a clientconfig
module)
"""
self.serverdata = serverdata
def put_file(self, data):
"""Send file to server"""
# TODO put code here
_old_client.put_files(self, [data])