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) )
def _command(self, cmd, *args): return remote_utils.get_root_parent(self).conn.element_command( cmd, self._id, *args)['response']