Commit c26c10d8 authored by Romain Courteaud's avatar Romain Courteaud

Allow to only check if some partition can accept instanciation

parent 9ecbad4a
...@@ -116,6 +116,9 @@ if filter_kw.keys():\n ...@@ -116,6 +116,9 @@ if filter_kw.keys():\n
# XXX Drop all unexpected keys\n # XXX Drop all unexpected keys\n
query_kw["uid"] = "-1"\n query_kw["uid"] = "-1"\n
\n \n
if test_mode:\n
return bool(len(context.portal_catalog(limit=1, **query_kw)))\n
\n
SQL_WINDOW_SIZE = 50\n SQL_WINDOW_SIZE = 50\n
\n \n
# fetch at mot 50 random Computer Partitions, and check if they are ok\n # fetch at mot 50 random Computer Partitions, and check if they are ok\n
...@@ -154,7 +157,7 @@ return computer_partition.getRelativeUrl()\n ...@@ -154,7 +157,7 @@ return computer_partition.getRelativeUrl()\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>software_release_url, software_type, software_instance_portal_type, filter_kw</string> </value> <value> <string>software_release_url, software_type, software_instance_portal_type, filter_kw, test_mode=False</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
473 474
\ 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