Commit 3cc9233f authored by Romain Courteaud's avatar Romain Courteaud

Propagate comment message

parent 1dbb15ae
...@@ -56,13 +56,14 @@ assert instance.getPortalType() in ["Slave Instance", "Software Instance"]\n ...@@ -56,13 +56,14 @@ assert instance.getPortalType() in ["Slave Instance", "Software Instance"]\n
if state_change.kwargs[\'bang_tree\']:\n if state_change.kwargs[\'bang_tree\']:\n
from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery\n from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery\n
portal = instance.getPortalObject()\n portal = instance.getPortalObject()\n
comment = state_change.kwargs[\'comment\']\n
hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscription")\n hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscription")\n
portal.portal_catalog.searchAndActivate(\n portal.portal_catalog.searchAndActivate(\n
default_specialise_uid=hosting_subscription.getUid(),\n default_specialise_uid=hosting_subscription.getUid(),\n
path=NegatedQuery(Query(path=instance.getPath())),\n path=NegatedQuery(Query(path=instance.getPath())),\n
portal_type=["Slave Instance", "Software Instance"],\n portal_type=["Slave Instance", "Software Instance"],\n
method_id=\'bang\',\n method_id=\'bang\',\n
method_kw={\'bang_tree\': False},\n method_kw={\'bang_tree\': False, \'comment\': comment},\n
)\n )\n
</string> </value> </string> </value>
</item> </item>
......
38 39
\ 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