Commit 3e91b4b0 authored by Benjamin Blanc's avatar Benjamin Blanc

bootstrap_erp5: add scalability users creation

parent 930db582
...@@ -118,3 +118,19 @@ if scalability: ...@@ -118,3 +118,19 @@ if scalability:
# Wait activities # Wait activities
waitFor0PendingActivities() waitFor0PendingActivities()
print "Scalability business configuration building: done." print "Scalability business configuration building: done."
# Create scalability users
if testIfExist("/%%s/person_module/scalability_user/getTitle" %%site_id) \
and not testIfExist("/%%s/person_module/scalability_user_0/getTitle" %%site_id):
zope_connection = getConnection()
zope_connection.request(
'GET', '/%%s/clone_scalability_user' %%site_id,
headers=header_dict
)
result = zope_connection.getresponse()
print "Creating scalaiblity users..."
assert(result.read()=="1")
# Wait activities
waitFor0PendingActivities()
print "Scalability users creation: done."
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