wsgidav.samples.dav_provider_tools.VirtualTextResource.get_properties

VirtualTextResource.get_properties(mode, *, name_list=None)

Return properties as list of 2-tuples (name, value).

If mode is ‘name’, then None is returned for the value.

name

the property name in Clark notation.

value

may have different types, depending on the status: - string or unicode: for standard property values. - etree.Element: for complex values. - DAVError in case of errors. - None: if mode == ‘name’.

@param mode: “allprop”, “name”, or “named” @param name_list: list of property names in Clark Notation (required for mode ‘named’)

This default implementation basically calls self.get_property_names() to get the list of names, then call self.get_property_value on each of them.