[nanny] Add GetBlockStatusByUid to PyroBus (client/server)
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny] Add GetBlockStatusByUid to PyroBus (client/server)
- Date: Sun, 23 Jan 2011 18:08:34 +0000 (UTC)
commit 6e1704c1f5827fdd5cfeb6f3541c8ef33adaad93
Author: Roberto Majadas <roberto majadas openshine com>
Date: Mon Jan 17 20:37:56 2011 +0100
Add GetBlockStatusByUid to PyroBus (client/server)
client/common/src/PyroClient.py | 3 +++
daemon/src/NannyPyroBus.py | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/client/common/src/PyroClient.py b/client/common/src/PyroClient.py
index 347993f..dbe8730 100644
--- a/client/common/src/PyroClient.py
+++ b/client/common/src/PyroClient.py
@@ -79,6 +79,9 @@ class PyroClient(gobject.GObject):
def set_blocks (self, user_id, app_id, blocks):
return self.nanny_admin.SetBlocks (user_id, app_id, blocks)
+ def get_block_status_by_uid(self, user_id):
+ return self.nanny_admin.GetBlockStatusByUid (user_id)
+
def get_max_use_time (self, user_id, app_id):
return self.nanny_admin.GetMaxUseTime (user_id, app_id)
diff --git a/daemon/src/NannyPyroBus.py b/daemon/src/NannyPyroBus.py
index c207aac..f021633 100644
--- a/daemon/src/NannyPyroBus.py
+++ b/daemon/src/NannyPyroBus.py
@@ -86,6 +86,9 @@ class OrgGnomeNanny(Pyro.core.ObjBase):
def GetBlocks(self, user_id, app_id) :
return PyroBlockingCallFromThread(reactor, self.quarterback.get_blocks, user_id, app_id)
+ def GetBlockStatusByUid (self, user_id):
+ return PyroBlockingCallFromThread(reactor, self.quarterback.get_block_status_by_uid, user_id)
+
def SetActiveWCF(self, active, uid):
PyroBlockingCallFromThread(reactor, self.quarterback.set_wcf, bool(active), str(uid))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]