summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoni Rabkin <yrk@gnu.org>2014-12-09 22:34:37 -0500
committerYoni Rabkin <yrk@gnu.org>2014-12-09 22:34:37 -0500
commit447c9f5842de48dc711caf3ee8d9f577875cc048 (patch)
treee060ab4f46bab72aa1b580f823cc8a84018abd76
parent3e4a424098dbf905801d7f91e5934a5e4252e556 (diff)
* rt-liberation.el: Move to REST API for ls queries.
Depreciated the CLI for 'ls' queries. Now using only the REST interface for these.
-rw-r--r--rt-liberation.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/rt-liberation.el b/rt-liberation.el
index 81872dd..532e034 100644
--- a/rt-liberation.el
+++ b/rt-liberation.el
@@ -36,6 +36,8 @@
(require 'time-date)
(require 'cl)
+(require 'rt-liberation-rest)
+
(defgroup rt-liber nil
"*rt-liberation, the Emacs interface to RT"
:prefix "rt-liber-"
@@ -386,12 +388,6 @@ AFTER date after predicate."
idsub-list))
idsub-list))
-(defun rt-liber-run-ls-query (query)
- "Run an \"ls\" type query against the server with QUERY."
- (rt-liber-parse-answer
- (rt-liber-query-runner "ls" query)
- 'rt-liber-ticketsql-runner-parser-f))
-
;;; --------------------------------------------------------
;;; Ticket list retriever
@@ -1082,7 +1078,7 @@ string then that will be the name of the new buffer."
(condition-case excep
(rt-liber-browser-startup
(rt-liber-run-show-base-query
- (rt-liber-run-ls-query query))
+ (rt-liber-rest-run-ls-query query))
query new)
(rt-liber-no-result-from-query-error
(rt-liber-browser-with-message "no results from query"