Changed file name and added some lines

git-svn-id: http://www.neo1973-germany.de/svn@155 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
edistar 2008-09-16 16:32:59 +00:00
parent 9cfd388dc2
commit da1814349e

View file

@ -1,4 +1,4 @@
# PyTracker Client # PyTrackerClient.py
''' '''
author: edistar author: edistar
license: GPL v3 or later license: GPL v3 or later
@ -14,10 +14,10 @@ from dbus import SystemBus, Interface
from optparse import OptionParser from optparse import OptionParser
class TrackClient: class TrackClient:
def __init__(self): def __init__(self, username, passwordhash, host, port):
self.InitSocket('localhost', 49152) self.InitSocket(host, port)
self.InitDbusStuff() self.InitDbusStuff()
self.InitUserHash('edistar', 'passwdhash') self.InitUserHash(username, passwordhash)
def InitSocket(self, host, port): def InitSocket(self, host, port):
# Set the socket parameters # Set the socket parameters