6.6.2. webdav.backends.openplm — OpenPLM Backend
openPLM.webdav application
Copyright 2012 LinObject
- Mostly inspired by webdav/backends/filesystem.py from:
- django-webdav is a small WebDAV implementation for Django.
Copyright 2012 Peter Gebauer
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-
openPLM.apps.webdav.backends.openplm.rfc3339_date(date)[source]
-
openPLM.apps.webdav.backends.openplm.safe_copyfileobj(fsrc, fdst, length=16384, size=0)[source]
A version of shutil.copyfileobj that will not read more than ‘size’ bytes.
This makes it safe from clients sending more than CONTENT_LENGTH bytes of
data in the body.
-
class openPLM.apps.webdav.backends.openplm.OpenPLMBackend(user)[source]
Bases: openPLM.apps.webdav.backends.Backend
Implements a backend to browse/edit documents/files stored by openPLM.
-
get_doc(path)[source]
-
dav_propfind(path, property_list, depth='1')[source]
-
dav_set_properties(path, properties)[source]
-
dav_remove_properties(path, property_names)[source]
-
dav_mkcol(path)[source]
-
dav_get(path)[source]
-
dav_head(path)[source]
-
dav_delete(path, token=None)[source]
-
dav_put(path, readable, token=None, estimated_size=0)[source]
-
dav_copy(path1, path2, token=None)[source]
-
dav_move(path1, path2, token1=None, token2=None)[source]
-
dav_lock(path, token=None, **kwargs)[source]
-
dav_unlock(path, token, owner=None)[source]
-
dav_get_lock(path)[source]