From da1814349e7be93c92e270951fdc359b2f221a22 Mon Sep 17 00:00:00 2001 From: edistar Date: Tue, 16 Sep 2008 16:32:59 +0000 Subject: [PATCH] Changed file name and added some lines git-svn-id: http://www.neo1973-germany.de/svn@155 46df4e5c-bc4e-4628-a0fc-830ba316316d --- PyTracker/trunk/{client.py => PyTrackerClient.py} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename PyTracker/trunk/{client.py => PyTrackerClient.py} (93%) diff --git a/PyTracker/trunk/client.py b/PyTracker/trunk/PyTrackerClient.py similarity index 93% rename from PyTracker/trunk/client.py rename to PyTracker/trunk/PyTrackerClient.py index 07b3a9f..ce5e968 100644 --- a/PyTracker/trunk/client.py +++ b/PyTracker/trunk/PyTrackerClient.py @@ -1,4 +1,4 @@ -# PyTracker Client +# PyTrackerClient.py ''' author: edistar license: GPL v3 or later @@ -14,10 +14,10 @@ from dbus import SystemBus, Interface from optparse import OptionParser class TrackClient: - def __init__(self): - self.InitSocket('localhost', 49152) + def __init__(self, username, passwordhash, host, port): + self.InitSocket(host, port) self.InitDbusStuff() - self.InitUserHash('edistar', 'passwdhash') + self.InitUserHash(username, passwordhash) def InitSocket(self, host, port): # Set the socket parameters