Kaydet (Commit) 7845e923 authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

socket parameter for Link class to connect any other DBus servers

üst a49583d4
2009-02-06 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: socket parameter for Link class to connect any other DBus servers
2009-02-01 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: Support COMAR 3.0
......
......@@ -140,12 +140,16 @@ class Call:
class Link:
def __init__(self, version="2"):
def __init__(self, version="2", socket=None):
self.version = str(version)
self.address = "tr.org.pardus.comar"
self.interface = "tr.org.pardus.comar"
self.socket = socket
if not socket:
self.bus = dbus.SystemBus()
else:
self.bus = dbus.bus.BusConnection(address_or_type="unix:path=%s" % socket)
if self.version == "3":
self.address += self.version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment