* more work on the new templated dav interface
authorWilfried Göesgens <willi@citadel.org>
Thu, 1 Oct 2009 19:01:39 +0000 (19:01 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 1 Oct 2009 19:01:39 +0000 (19:01 +0000)
webcit/static/t/dav_propfind_groupdav_floorlist.xml [new file with mode: 0644]
webcit/static/t/dav_propfind_groupdav_floorlist_onefloor.xml [new file with mode: 0644]
webcit/static/t/dav_propfind_groupdav_roomlist.xml [new file with mode: 0644]
webcit/static/t/dav_propfind_groupdav_roomlist_oneroom.xml [new file with mode: 0644]
webcit/static/t/dav_propfind_upper_dirs.xml [new file with mode: 0644]

diff --git a/webcit/static/t/dav_propfind_groupdav_floorlist.xml b/webcit/static/t/dav_propfind_groupdav_floorlist.xml
new file mode 100644 (file)
index 0000000..6e5f4f6
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<multistatus xmlns="DAV:" xmlns:G="http://groupdav.org/">
+<?=("dav_propfind_upper_dirs")>
+<?ITERATE("LFLR", "dav_propfind_groupdav_floorlist_onefloor")>
+</multistatus>
diff --git a/webcit/static/t/dav_propfind_groupdav_floorlist_onefloor.xml b/webcit/static/t/dav_propfind_groupdav_floorlist_onefloor.xml
new file mode 100644 (file)
index 0000000..31bf7d4
--- /dev/null
@@ -0,0 +1,11 @@
+<?!("COND:ROOM:REST:ISSUBFLOOR", 1)><response>
+<href><?DAV:HOSTNAME>/groupdav/<?FLOOR:NAME("X")>/</href>
+<propstat>
+<status>HTTP/1.1 200 OK</status>
+<prop>
+<displayname><?FLOOR:NAME></displayname>
+<resourcetype><collection/></resourcetype>
+<getlastmodified><?DATE:NOW:STR></getlastmodified>
+</prop>
+</propstat>
+</response><??("X",1)>
diff --git a/webcit/static/t/dav_propfind_groupdav_roomlist.xml b/webcit/static/t/dav_propfind_groupdav_roomlist.xml
new file mode 100644 (file)
index 0000000..b0befe1
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<multistatus xmlns="DAV:" xmlns:G="http://groupdav.org/">
+<response>
+<href>
+<?DAV:HOSTNAME>/
+</href>
+<propstat>
+<status>HTTP/1.1 200 OK</status>
+<prop>
+<displayname>GroupDAV</displayname>
+<resourcetype><collection/></resourcetype>
+<getlastmodified>
+<?DATE:NOW:STR>
+</getlastmodified>
+</prop>
+</propstat>
+</response>
+<?ITERATE("LKRA", "dav_propfind_groupdav_roomlist_oneroom")>
+</multistatus>
diff --git a/webcit/static/t/dav_propfind_groupdav_roomlist_oneroom.xml b/webcit/static/t/dav_propfind_groupdav_roomlist_oneroom.xml
new file mode 100644 (file)
index 0000000..a5311a8
--- /dev/null
@@ -0,0 +1,11 @@
+<??("COND:ROOM:GROUPDAV_CONTENT", 1)><??("COND:ROOM:REST:ISSUBROOM", 2)><response>
+<href><?DAV:HOSTNAME>/groupdav/<?ROOM:INFO:FLOOR:NAME("X")>/<?ROOM:INFO:NAME("X")>/</href>
+<propstat>
+<status>HTTP/1.1 200 OK</status>
+<prop>
+<displayname><?ROOM:INFO:PRINT_NAME></displayname>
+<resourcetype><collection/><G:vtodo<?ROOM:INFO:COLLECTIONTYPE>-collection /></resourcetype>
+<getlastmodified><?ROOM:INFO:LASTCHANGE></getlastmodified>
+</prop>
+</propstat>
+</response><??("X", 2)><??("X",1)>
diff --git a/webcit/static/t/dav_propfind_upper_dirs.xml b/webcit/static/t/dav_propfind_upper_dirs.xml
new file mode 100644 (file)
index 0000000..47ac23d
--- /dev/null
@@ -0,0 +1,22 @@
+<response>
+<href><?DAV:HOSTNAME>/</href>
+<propstat>
+<status>HTTP/1.1 200 OK</status>
+<prop>
+<displayname>/</displayname>
+<resourcetype><collection/></resourcetype>
+<getlastmodified><?DATE:NOW:STR></getlastmodified>
+</prop>
+</propstat>
+</response>
+<response>
+<href><?DAV:HOSTNAME>/groupdav</href>
+<propstat>
+<status>HTTP/1.1 200 OK</status>
+<prop>
+<displayname>GroupDAV</displayname>
+<resourcetype><collection/></resourcetype>
+<getlastmodified><?DATE:NOW:STR></getlastmodified>
+</prop>
+</propstat>
+</response>