Example #1
0
 def _delete(self, path):
     """Sends a command to the server using http DELETE method."""
     return utils.return_value_if_exists(
         self._conn.delete(path))
Example #2
0
 def _post(self, path, *params):
     """Sends the command using http POST method."""
     return utils.return_value_if_exists(
         utils.get_root_parent(self).conn.post(("element/%s/" % self.id) + path, *params)
     )
Example #3
0
 def _post(self, path, *params):
     """Sends a command to the server using http POST method."""
     return utils.return_value_if_exists(
         self._conn.post(path, *params))