diff libervia.py @ 215:e830a0c60d32

server side: added the security_limit to setParam - in addition to the check which is done by the core, libervia checks if the param to be modified was really part of the XML that has been returned by getParams with security_limit = 0.
author souliane <souliane@mailoo.org>
date Sat, 07 Sep 2013 02:07:07 +0200
parents 8bbac49765d6
children 4e6467efd6bf
line wrap: on
line diff
--- a/libervia.py	Fri Sep 06 16:23:30 2013 +0200
+++ b/libervia.py	Sat Sep 07 02:07:07 2013 +0200
@@ -99,11 +99,14 @@
 class BridgeCall(LiberviaJsonProxy):
     def __init__(self):
         LiberviaJsonProxy.__init__(self, "/json_api",
-                        ["getContacts", "addContact", "sendMessage", "sendMblog", "sendMblogComment", "getLastMblogs", "getMassiveLastMblogs", "getMblogComments", "getProfileJid", "getHistory", "getPresenceStatus",
-                         "joinMUC", "mucLeave", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed", "tarotGamePlayCards",
-                         "launchRadioCollective", "getWaitingSub", "subscription", "delContact", "updateContact", "getCard", "getEntityData", "getParamsUI", "chatStateComposing",
-                         #"setParam",
-                         "launchAction", "disconnect",
+                        ["getContacts", "addContact", "sendMessage", "sendMblog", "sendMblogComment",
+                         "getLastMblogs", "getMassiveLastMblogs", "getMblogComments", "getProfileJid",
+                         "getHistory", "getPresenceStatus", "joinMUC", "mucLeave", "getRoomsJoined",
+                         "launchTarotGame", "getTarotCardsPaths", "tarotGameReady",
+                         "tarotGameContratChoosed", "tarotGamePlayCards", "launchRadioCollective",
+                         "getWaitingSub", "subscription", "delContact", "updateContact", "getCard",
+                         "getEntityData", "getParamsUI", "setParam", "launchAction", "disconnect",
+                         "chatStateComposing"
                         ])
 
 class BridgeSignals(LiberviaJsonProxy):
@@ -355,7 +358,7 @@
                     _groups=None
                 mblog_entry = MicroblogItem(mblog)
                 self.mblog_cache.append((_groups, mblog_entry))
-    
+
         if len(self.mblog_cache) > MAX_MBLOG_CACHE:
             del self.mblog_cache[0:len(self.mblog_cache-MAX_MBLOG_CACHE)]
         for lib_wid in self.libervia_widgets: