Added get_property to the appcontroller client
@@ -390,3 +390,20 @@ class AppControllerClient():
"""
return self.call(self.MAX_RETRIES, self.server.set_read_only, read_only,
self.secret)
+
+
+ def get_property(self, property_regex):
+ """Queries the AppController for a dictionary of its instance variables
+ whose names match the given regular expression, along with their associated
+ values.
+
+ Args:
+ property_regex: A str that names a regex of instance variables whose
+ values should be retrieved from the AppController.
+ Returns:
+ A dict mapping each instance variable matched by the given regex to its
+ value. This dict is empty when (1) no matches are found, or (2) if the
+ SOAP call times out.
+ """
+ return json.loads(self.call(self.MAX_RETRIES,
+ self.server.get_property, property_regex, self.secret))
