-
-
Notifications
You must be signed in to change notification settings - Fork 146
/
addons-virtual.rst
41 lines (30 loc) · 1.29 KB
/
addons-virtual.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Virtual WebDAV provider
=======================
Examples
--------
Given these 3 'resources':
========== =========== ========= ========== =============
Title Orga Status Tags Attachments
========== =========== ========= ========== =============
My doc 1 development draft cool, hot MySpec.doc
MySpec.pdf
---------- ----------- --------- ---------- -------------
My doc 2 development published cool, nice MyURS.doc
---------- ----------- --------- ---------- -------------
My doc (.) marketing published nice MyURS.doc
========== =========== ========= ========== =============
this dynamic structure is published:
.. image:: _static/img/Explorer_virtual.png
A resource is served as an collection, which is generated on-the-fly and
contains some virtual files with additional information:
.. image:: _static/img/Browser_virtual.png
Usage
-----
To publish the sample virtual resources, simply add these lines to the
configuration file::
# Publish a virtual structure
from wsgidav.samples.virtual_dav_provider import VirtualResourceProvider
addShare("virtres", VirtualResourceProvider())
Module description
------------------
.. automodule:: wsgidav.samples.virtual_dav_provider