Commit f585c831 authored by Romain Courteaud's avatar Romain Courteaud

Do not index template.

This will prevent the global checkConsistency alarm to complaint about those documents
parent 9c148e1c
No related merge requests found
...@@ -104,6 +104,33 @@ ...@@ -104,6 +104,33 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>template_member</string> </value> <value> <string>template_member</string> </value>
</item> </item>
<item>
<key> <string>isIndexable</string> </key>
<value>
<object>
<klass>
<global name="PropertyGetter" module="Products.ERP5Type.Accessor.Constant"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>isIndexable</string> </value>
</item>
<item>
<key> <string>_id</string> </key>
<value> <string>isIndexable</string> </value>
</item>
<item>
<key> <string>value</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>last_name</string> </key> <key> <string>last_name</string> </key>
<value> <string>Template</string> </value> <value> <string>Template</string> </value>
......
...@@ -69,6 +69,33 @@ ...@@ -69,6 +69,33 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>template_software_release</string> </value> <value> <string>template_software_release</string> </value>
</item> </item>
<item>
<key> <string>isIndexable</string> </key>
<value>
<object>
<klass>
<global name="PropertyGetter" module="Products.ERP5Type.Accessor.Constant"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>isIndexable</string> </value>
</item>
<item>
<key> <string>_id</string> </key>
<value> <string>isIndexable</string> </value>
</item>
<item>
<key> <string>value</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>language</string> </key> <key> <string>language</string> </key>
<value> <value>
......
...@@ -23,6 +23,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase): ...@@ -23,6 +23,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
reference="live_test_%s" % new_id, reference="live_test_%s" % new_id,
url_string=self.generateNewSoftwareReleaseUrl(), url_string=self.generateNewSoftwareReleaseUrl(),
) )
del software_release.isIndexable
software_release.publish() software_release.publish()
self.software_release = software_release self.software_release = software_release
...@@ -34,6 +35,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase): ...@@ -34,6 +35,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
reference="live_test_%s" % new_id, reference="live_test_%s" % new_id,
url_string=self.generateNewSoftwareReleaseUrl(), url_string=self.generateNewSoftwareReleaseUrl(),
) )
del software_release.isIndexable
software_release.publish() software_release.publish()
self.software_release2 = software_release self.software_release2 = software_release
...@@ -45,6 +47,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase): ...@@ -45,6 +47,7 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
reference="live_test_%s" % new_id, reference="live_test_%s" % new_id,
default_email_text="live_test_%s@example.org" % new_id, default_email_text="live_test_%s@example.org" % new_id,
) )
del person_user.isIndexable
person_user.updateLocalRolesOnSecurityGroups() person_user.updateLocalRolesOnSecurityGroups()
person_user.validate() person_user.validate()
......
6 7
\ No newline at end of file \ No newline at end of file
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