Code Repositories xandikos / 3333d3d
Fix sync. Jelmer Vernooń≥ 3 years ago
2 changed file(s) with 2 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
0 Some properties need a way to create <href> objects that refer to the relative path of the resource.
1
2 addmember
3 calendar-home-set
4 addressbook-home-set
5
6 Access to a create_href() function should be sufficient.
7
80 Some properties need WebDAV server metadata:
91
102 supported-live-property-set needs list of properties
2315
2416 class Context(object):
2517
26 def create_href(self, href):
27 raise NotImplementedError(self.create_href)
28
2918 def get_current_user(self):
3019 return (name, principal)
8989 for prop in requested:
9090 if old_resource is not None:
9191 old_propstat = webdav.get_property(
92 old_resource, properties, prop.tag)
92 href, old_resource, properties, prop.tag)
9393 else:
9494 old_propstat = None
9595 new_propstat = webdav.get_property(
96 new_resource, properties, prop.tag)
96 href, new_resource, properties, prop.tag)
9797 if old_propstat != new_propstat:
9898 propstat.append(new_propstat)
9999 yield webdav.Status(