diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-20 14:46:07 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-20 14:46:07 +0100 |
commit | 22e4f295556fdd4c25cf43983a56ff74acab7739 (patch) | |
tree | ac1af9b3aa72dcf0475d7dfbf2468c3c517380eb /aero-dav/src | |
parent | 3c2d4e69876f4e8af0e3fbf5efa774a2084be67e (diff) | |
download | aerogramme-22e4f295556fdd4c25cf43983a56ff74acab7739.tar.gz aerogramme-22e4f295556fdd4c25cf43983a56ff74acab7739.zip |
working report calendar-multiget
Diffstat (limited to 'aero-dav/src')
-rw-r--r-- | aero-dav/src/caldecoder.rs | 4 | ||||
-rw-r--r-- | aero-dav/src/xml.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/aero-dav/src/caldecoder.rs b/aero-dav/src/caldecoder.rs index f92cf09..008668e 100644 --- a/aero-dav/src/caldecoder.rs +++ b/aero-dav/src/caldecoder.rs @@ -69,7 +69,7 @@ impl<E: dav::Extension> QRead<CalendarQuery<E>> for CalendarQuery<E> { impl<E: dav::Extension> QRead<CalendarMultiget<E>> for CalendarMultiget<E> { async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> { - xml.open(CAL_URN, "free-busy-query").await?; + xml.open(CAL_URN, "calendar-multiget").await?; let mut selector = None; let mut href = Vec::new(); @@ -93,7 +93,7 @@ impl<E: dav::Extension> QRead<CalendarMultiget<E>> for CalendarMultiget<E> { impl QRead<FreeBusyQuery> for FreeBusyQuery { async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> { - xml.open(CAL_URN, "calendar-multiple-get").await?; + xml.open(CAL_URN, "free-busy-query").await?; let range = xml.find().await?; xml.close().await?; Ok(FreeBusyQuery(range)) diff --git a/aero-dav/src/xml.rs b/aero-dav/src/xml.rs index 020ee6c..d57093e 100644 --- a/aero-dav/src/xml.rs +++ b/aero-dav/src/xml.rs @@ -259,6 +259,7 @@ impl<T: IRead> Reader<T> { } pub async fn open_start(&mut self, ns: &[u8], key: &str) -> Result<Event<'static>, ParsingError> { + //println!("try open start tag {:?}, on {:?}", key, self.peek()); let evt = match self.peek() { Event::Start(_) if self.is_tag(ns, key) => self.next().await?, _ => return Err(ParsingError::Recoverable), |