[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/excorporate da2b980 08/93: packages/excorporate: Improv
From: |
Stefan Monnier |
Subject: |
[elpa] externals/excorporate da2b980 08/93: packages/excorporate: Improve exco-get-meetings-for-day |
Date: |
Sun, 29 Nov 2020 15:42:57 -0500 (EST) |
branch: externals/excorporate
commit da2b9807d58153dab87e9bea6e3dd88cd5841c23
Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Commit: Thomas Fitzsimmons <fitzsim@fitzsim.org>
packages/excorporate: Improve exco-get-meetings-for-day
* packages/excorporate/excorporate.el (exco-get-meetings-for-day):
Add RequestVersion header to FindItem request. Use
soap-operation-arity to calculate how many nil arguments to send.
---
excorporate.el | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/excorporate.el b/excorporate.el
index 8168dd3..6051fdd 100644
--- a/excorporate.el
+++ b/excorporate.el
@@ -708,7 +708,12 @@ arguments, IDENTIFIER and the server's response."
identifier
"FindItem"
`(;; Main arguments.
- ((Traversal . "Shallow")
+ (;; RequestVersion is usually overridden by a fixed value in
+ ;; the WSDL (the RequestServerVersion element); provide the
+ ;; maximally-compatible Exchange2007 if the fixed value isn't
+ ;; present.
+ (RequestVersion (Version . "Exchange2007"))
+ (Traversal . "Shallow")
(ItemShape
(BaseShape . "AllProperties"))
;; To aid productivity, excorporate-calfw automatically prunes your
@@ -719,16 +724,13 @@ arguments, IDENTIFIER and the server's response."
(ParentFolderIds
(DistinguishedFolderId (Id . "calendar"))))
;; Empty arguments.
- ,@(let ((server-major-version
- (string-to-number
- (substring (exco-server-version identifier) 8 12))))
- (cond
- ((<= server-major-version 2007)
- '(nil nil nil nil))
- ((< server-major-version 2013)
- '(nil nil nil nil nil))
- (t
- '(nil nil nil nil nil nil)))))
+ ,@(let* ((wsdl (exco--with-fsm identifier
+ (plist-get (fsm-get-state-data fsm)
+ :service-wsdl)))
+ (arity (soap-operation-arity wsdl
+ "ExchangeServicePort"
+ "FindItem")))
+ (make-list (- arity 1) nil)))
callback)))
(defun exco-connection-iterate (initialize-function
- [elpa] externals/excorporate 47d2698 32/93: packages/excorporate: Support diary on Emacs 24.1, 24.2, 24.3, (continued)
- [elpa] externals/excorporate 47d2698 32/93: packages/excorporate: Support diary on Emacs 24.1, 24.2, 24.3, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 77030b3 37/93: packages/excorporate: Fix generated whitespace issue, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 7849d8f 42/93: excorporate-diary: Add feature idea comment, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate f3888e1 77/93: Excorporate: Require Org 9.0 or newer, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 2f76f57 71/93: Excorporate: Change organizer representation, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 30cc0bd 63/93: Excorporate: Add appointment deletion in Org buffer, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 538e908 68/93: Excorporate: Support cancelling meetings in Org buffer, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 8e7779a 81/93: Excorporate: Expand responses in API usage examples, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 5f81163 88/93: Excorporate: Fix a byte-compilation warning, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 34827cc 06/93: packages/excorporate: Retrieve Services.wsdl directly, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate da2b980 08/93: packages/excorporate: Improve exco-get-meetings-for-day,
Stefan Monnier <=
- [elpa] externals/excorporate da594da 14/93: packages/excorporate: Bump version to 0.7.3, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 68c5585 17/93: packages/excorporate: Interoperate with `save-some-buffers', Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 52d6067 21/93: excorporate.el: Bump version to 0.7.6, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 7e855f7 23/93: excorporate.el: Bump soap-client requirement to 3.1.4, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate a588ff6 27/93: packages/excorporate: Bump version to 0.7.7, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 23e514f 33/93: packages/excorporate: Mention appt features in documentation, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate e788f73 38/93: Advise icalendar--add-diary-entry conditionally, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate eb2430f 34/93: packages/excorporate: Bump version to 0.8.0, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate a8ba2d4 30/93: packages/excorporate: Add diary and appt integration, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 2e13256 49/93: excorporate-diary: Don't force diary-fancy-display, Stefan Monnier, 2020/11/29