Commit eb44da22 authored by Łukasz Nowak's avatar Łukasz Nowak

Be consistent.

Require comment for self and for other in the tree.
parent ffd465e7
......@@ -55,11 +55,10 @@ instance = state_change[\'object\']\n
assert instance.getPortalType() in ["Slave Instance", "Software Instance"]\n
\n
instance.edit(bang_timestamp=int(DateTime()))\n
\n
comment = state_change.kwargs[\'comment\'] # comment is required to pass the transition\n
if state_change.kwargs[\'bang_tree\']:\n
from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery\n
portal = instance.getPortalObject()\n
comment = state_change.kwargs[\'comment\']\n
hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscription")\n
portal.portal_catalog.searchAndActivate(\n
default_specialise_uid=hosting_subscription.getUid(),\n
......
168
\ No newline at end of file
169
\ 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