Commit 15ba91fc authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Don't set reference on init script for organisations

Let the interaction workflow handle it later
parent 70843959
portal = context.getPortalObject() return
if context.getRole() == "host":
reference_prefix = "SITE"
else:
reference_prefix = "O"
reference = "%s-%s" % (reference_prefix, portal.portal_ids.generateNewId(
id_group='slap_organisation_reference',
id_generator='uid'))
context.edit(reference=reference)
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