wsgidav.samples.virtual_dav_provider.CategoryTypeCollection

class wsgidav.samples.virtual_dav_provider.CategoryTypeCollection(path, environ)[source]

Bases: wsgidav.dav_provider.DAVCollection

Resolve ‘/catType’ URLs, for example ‘/by_tag’.

CategoryTypeCollection.begin_write(*[, ...])

Open content as a stream for writing.

CategoryTypeCollection.copy_move_single(...)

Copy or move this resource to destPath (non-recursive).

CategoryTypeCollection.create_collection(name)

Create a new collection as member of self.

CategoryTypeCollection.create_empty_resource(name)

Create and return an empty (length-0) resource as member of self.

CategoryTypeCollection.delete()

Remove this resource (possibly recursive).

CategoryTypeCollection.end_write(*, with_errors)

Called when PUT has finished writing.

CategoryTypeCollection.finalize_headers(...)

Perform custom operations on the response headers.

CategoryTypeCollection.get_content()

Open content as a stream for reading.

CategoryTypeCollection.get_content_length()

Contains the Content-Length header returned by a GET without accept headers.

CategoryTypeCollection.get_content_type()

Contains the Content-Type header returned by a GET without accept headers.

CategoryTypeCollection.get_creation_date()

Records the time and date the resource was created.

CategoryTypeCollection.get_descendants(*[, ...])

Return a list _DAVResource objects of a collection (children, grand-children, ...).

CategoryTypeCollection.get_directory_info()

Return a list of dictionaries with information for directory rendering.

CategoryTypeCollection.get_display_info()

Return additional info dictionary for displaying (optional).

CategoryTypeCollection.get_display_name()

Provides a name for the resource that is suitable for presentation to a user.

CategoryTypeCollection.get_etag()

See http://www.webdav.org/specs/rfc4918.html#PROPERTY_getetag

CategoryTypeCollection.get_href()

Convert path to a URL that can be passed to XML responses.

CategoryTypeCollection.get_last_modified()

Contains the Last-Modified header returned by a GET method without accept headers.

CategoryTypeCollection.get_member(name)

Return child resource with a given name (None, if not found).

CategoryTypeCollection.get_member_list()

Return a list of direct members (_DAVResource or derived objects).

CategoryTypeCollection.get_member_names()

Return list of (direct) collection member names (UTF-8 byte strings).

CategoryTypeCollection.get_preferred_path()

Return preferred mapping for a resource mapping.

CategoryTypeCollection.get_properties(mode, *)

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

CategoryTypeCollection.get_property_names(*, ...)

Return list of supported property names in Clark Notation.

CategoryTypeCollection.get_property_value(name)

Return the value of a property.

CategoryTypeCollection.get_ref_url()

Return the quoted, absolute, unique URL of a resource, relative to appRoot.

CategoryTypeCollection.handle_copy(...)

Handle a COPY request natively.

CategoryTypeCollection.handle_delete()

Handle a DELETE request natively.

CategoryTypeCollection.handle_move(dest_path)

Handle a MOVE request natively.

CategoryTypeCollection.is_locked()

Return True, if URI is locked.

CategoryTypeCollection.move_recursive(dest_path)

Move this resource and members to destPath.

CategoryTypeCollection.prevent_locking()

Return True, to prevent locking.

CategoryTypeCollection.remove_all_locks(*, ...)

CategoryTypeCollection.remove_all_properties(*, ...)

Remove all associated dead properties.

CategoryTypeCollection.resolve(script_name, ...)

Return a _DAVResource object for the path (None, if not found).

CategoryTypeCollection.set_last_modified(...)

Set last modified time for destPath to timeStamp on epoch-format

CategoryTypeCollection.set_property_value(...)

Set a property value or remove a property.

CategoryTypeCollection.support_content_length()

Return True, if this resource supports Content-Length.

CategoryTypeCollection.support_etag()

Return True, if this resource supports ETags.

CategoryTypeCollection.support_modified()

Return True, if this resource supports last modified dates.

CategoryTypeCollection.support_ranges()

Return True, if this non-resource supports Range on GET requests.

CategoryTypeCollection.support_recursive_delete()

Return True, if delete() may be called on non-empty collections (see comments there).

CategoryTypeCollection.support_recursive_move(...)

Return True, if move_recursive() is available (see comments there).