début de réplication
This commit is contained in:
parent
6377ccb9e7
commit
74ee60e86c
3 changed files with 63 additions and 2 deletions
25
cpasswords/clientlib.py
Normal file
25
cpasswords/clientlib.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# -*- 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])
|
Loading…
Add table
Add a link
Reference in a new issue