exernal editor: ignore versioning requests (saveasnewversion)
This commit is contained in:
parent
d1faad7e2a
commit
3a30efffe3
4 changed files with 16 additions and 3 deletions
|
@ -9,7 +9,8 @@ $Id$
|
||||||
- media assets: allow for access restriction for viewing larger than a
|
- media assets: allow for access restriction for viewing larger than a
|
||||||
given maximum size (via option ``media.unauthorized_max_size``)
|
given maximum size (via option ``media.unauthorized_max_size``)
|
||||||
- external editor functionality: include title field in data in order to
|
- external editor functionality: include title field in data in order to
|
||||||
make it work correctly with the current version of the client module
|
make it work correctly with the current version of the client module;
|
||||||
|
ignore versioning requests (saveasnewversion)
|
||||||
- suppress node view reload when node has been modified in management interface
|
- suppress node view reload when node has been modified in management interface
|
||||||
- overwrite also basic attributes via addObject(), e.g. when importing loops data
|
- overwrite also basic attributes via addObject(), e.g. when importing loops data
|
||||||
- allow editing/creation of work items by others (creator, admin),
|
- allow editing/creation of work items by others (creator, admin),
|
||||||
|
|
|
@ -502,16 +502,23 @@
|
||||||
permission="zope.ManageContent">
|
permission="zope.ManageContent">
|
||||||
</page>
|
</page>
|
||||||
|
|
||||||
|
<page
|
||||||
|
name="saveasnewversion"
|
||||||
|
for="loops.interfaces.INode"
|
||||||
|
class="loops.browser.node.NodeView"
|
||||||
|
attribute="externalEditorSaveAsNewVersion"
|
||||||
|
permission="zope.ManageContent">
|
||||||
|
</page>
|
||||||
|
|
||||||
|
<!-- not used -->
|
||||||
<pages for="loops.interfaces.IResource"
|
<pages for="loops.interfaces.IResource"
|
||||||
class="loops.browser.resource.ExternalEditorView"
|
class="loops.browser.resource.ExternalEditorView"
|
||||||
permission="zope.ManageContent">
|
permission="zope.ManageContent">
|
||||||
|
|
||||||
<page name="external_edit" attribute="load" />
|
<page name="external_edit" attribute="load" />
|
||||||
<!--
|
<!--
|
||||||
<page name="save" attribute="save" />
|
<page name="save" attribute="save" />
|
||||||
<page name="lock" attribute="lock" />
|
<page name="lock" attribute="lock" />
|
||||||
<page name="unlock" attribute="unlock" />-->
|
<page name="unlock" attribute="unlock" />-->
|
||||||
|
|
||||||
</pages>
|
</pages>
|
||||||
|
|
||||||
<!-- query views -->
|
<!-- query views -->
|
||||||
|
|
|
@ -563,6 +563,10 @@ class NodeView(BaseView):
|
||||||
self.recordAccess('external_edit')
|
self.recordAccess('external_edit')
|
||||||
return ExternalEditorView(target, self.request).load(url=url)
|
return ExternalEditorView(target, self.request).load(url=url)
|
||||||
|
|
||||||
|
def externalEditorSaveAsNewVersion(self):
|
||||||
|
# ignore versioning requests issued by external editor client
|
||||||
|
pass
|
||||||
|
|
||||||
# work items
|
# work items
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
|
|
|
@ -370,6 +370,7 @@ class DocumentView(ResourceView):
|
||||||
|
|
||||||
|
|
||||||
class ExternalEditorView(ExternalEditorView, BaseView):
|
class ExternalEditorView(ExternalEditorView, BaseView):
|
||||||
|
# obsolete, base class is used immediately
|
||||||
|
|
||||||
def load(self, url=None):
|
def load(self, url=None):
|
||||||
#context = removeSecurityProxy(self.context)
|
#context = removeSecurityProxy(self.context)
|
||||||
|
|
Loading…
Add table
Reference in a new issue