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