tag = script.id
activate_kw = dict(tag=tag)

data_supply = state_change['object']
data_supply.reindexObject(activate_kw=activate_kw)

data_supply_lines = data_supply.contentValues(portal_type='Data Supply Line')
if len(data_supply_lines) == 0:
  return

for data_supply_line in data_supply_lines:
  data_supply_line.activate(after_tag=tag).updateLocalRolesOnSecurityGroups()
  for value in data_supply_line.getAggregateValueList():
    value.activate(after_tag=tag).updateLocalRolesOnSecurityGroups()
