summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorTom Parker <palfrey@tevp.net>2007-09-26 14:42:47 +0200
committerTom Parker <palfrey@tevp.net>2007-09-26 14:46:18 +0200
commit00229dd1868eea15321198bc96f77d7b154ff389 (patch)
tree45add991fc4dec9378d2c3edde40f20442b02dec /python
parent857cdecbb3e7fd76fe6869074e4a0f92cd4db8d9 (diff)
Add new tid stuff to python interface
Diffstat (limited to 'python')
-rw-r--r--python/packagekit/frontend.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/packagekit/frontend.py b/python/packagekit/frontend.py
index 6c71eb7c..21bb9088 100644
--- a/python/packagekit/frontend.py
+++ b/python/packagekit/frontend.py
@@ -76,6 +76,9 @@ class PackageKit:
return jid
return wrapper
+ def tid(self):
+ return self.pk_iface.GetTid()
+
def __init__(self):
DBusGMainLoop(set_as_default=True)
bus = dbus.SystemBus()
@@ -140,18 +143,17 @@ class PackageKit:
@dbusException
@job_id
def SearchName(self,pattern,filter="none"):
- return self.pk_iface.SearchName(filter,pattern)
+ return self.pk_iface.SearchName(self.tid(),filter,pattern)
@dbusException
@job_id
def GetDescription(self,package_id):
- return self.pk_iface.GetDescription(package_id)
+ return self.pk_iface.GetDescription(self.tid(),package_id)
@dbusException
@job_id
def RefreshCache(self,force=False):
- return self.pk_iface.RefreshCache(force)
+ return self.pk_iface.RefreshCache(self.tid(),force)
# hack to avoid exporting them
-#del job_id
del dbusException