Skip to content

Commit

Permalink
- Fixed PUT issue that failed due to a WebDAV lock test in ``mana…
Browse files Browse the repository at this point in the history
…ge_edit``
  • Loading branch information
dataflake committed Feb 14, 2020
1 parent 82f1fab commit ee90b8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,8 @@ Changelog
3.4 (unreleased)
----------------

- Fixed ``PUT`` issue that failed due to a WebDAV lock test in ``manage_edit``


3.3 (2020-02-12)
----------------
Expand Down
14 changes: 10 additions & 4 deletions src/Shared/DC/ZRDB/DA.py
Expand Up @@ -443,10 +443,16 @@ def PUT(self, REQUEST, RESPONSE):
raise ValueError('The "%s" parameter is required '
'but was not supplied' % e)

self.manage_edit(parameters.get('title', ''),
connection_id,
parameters.get('arguments', ''),
template=body)
self.title = parameters.get('title', '')
self.connection_id = connection_id
arguments = parameters.get('arguments', '')
self.arguments_src = arguments
self._arg = parse(arguments)
template = body
self.src = template
self.template = t = self.template_class(template)
t.cook()
self._v_cache = ({}, Bucket())

connection_hook = parameters.get('connection_hook', None)
direct = (parameters.get('allow_simple_one_argument_traversal',
Expand Down

0 comments on commit ee90b8c

Please sign in to comment.