Commit 82f4aa07 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_dms: allow to use web_view action if object has no base data

parent 72166d29
......@@ -88,7 +88,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:object is not None and object.isWebMode() and object.hasBaseData() and not object.isEditableMode()</string> </value>
<value> <string>python:object is not None and object.isWebMode() and not object.isEditableMode()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -88,7 +88,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:object is not None and object.isWebMode() and object.hasBaseData() and not object.isEditableMode()</string> </value>
<value> <string>python:object is not None and object.isWebMode() and not object.isEditableMode()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -88,7 +88,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:object is not None and object.isWebMode() and object.hasBaseData() and not object.isEditableMode()</string> </value>
<value> <string>python:object is not None and object.isWebMode() and not object.isEditableMode()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -88,7 +88,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:object is not None and object.isWebMode() and object.hasBaseData() and not object.isEditableMode()</string> </value>
<value> <string>python:object is not None and object.isWebMode() and not object.isEditableMode()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -1694,6 +1694,34 @@ return True
"""
self.checkWebSiteDocumentViewConsistency("Image", module_id="image_module")
def test_checkWebSiteTextViewConsistency(self):
"""
Checks that the default view action of a Text, viewing from a web site,
is `web_view`.
"""
self.checkWebSiteDocumentViewConsistency("Text")
def test_checkWebSitePresentationViewConsistency(self):
"""
Checks that the default view action of a Presentation, viewing from a web
site, is `web_view`.
"""
self.checkWebSiteDocumentViewConsistency("Presentation")
def test_checkWebSiteSpreadsheetViewConsistency(self):
"""
Checks that the default view action of a Spreadsheet, viewing from a web
site, is `web_view`.
"""
self.checkWebSiteDocumentViewConsistency("Spreadsheet")
def test_checkWebSiteDrawingViewConsistency(self):
"""
Checks that the default view action of a Drawing, viewing from a web site,
is `web_view`.
"""
self.checkWebSiteDocumentViewConsistency("Drawing")
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5WebWithDms))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment