Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
01e31a37
Commit
01e31a37
authored
Jul 31, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_bootstrap: for relooping
parent
b78e6cbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
46 deletions
+49
-46
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
+49
-46
No files found.
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
View file @
01e31a37
...
@@ -126,50 +126,53 @@ if result.status == 204: # and (result.read() == "False"):
...
@@ -126,50 +126,53 @@ if result.status == 204: # and (result.read() == "False"):
# Scalability case
# Scalability case
if scalability:
if scalability:
# Fix site consistency
while True:
if not testIfExist("/%%s/portal_configurator/" %%site_id):
print "Going to fix site consistency..."
# Fix site consistency
zope_connection = getConnection()
if not testIfExist("/%%s/portal_configurator/" %%site_id):
zope_connection.request(
print "Going to fix site consistency..."
'GET', '/%%s/ERP5Site_launchFixConfigurationConsistency' %%(site_id),
zope_connection = getConnection()
headers=header_dict
zope_connection.request(
)
'GET', '/%%s/ERP5Site_launchFixConfigurationConsistency' %%(site_id),
result = zope_connection.getresponse()
headers=header_dict
print "Check consistency..."
)
print result.read()
result = zope_connection.getresponse()
# Wait activities
print "Check consistency..."
waitFor0PendingActivities()
print result.read()
print "Site consistency checking: done."
# Wait activities
waitFor0PendingActivities()
# Install testing scalability business configuration if not exists
print "Site consistency checking: done."
if testIfExist("/%%s/portal_configurator/" %%site_id) \
and not testIfExist("/%%s/sale_order_module/" %%site_id):
# Install testing scalability business configuration if not exists
print "Going to install testing scalability business configuration.."
if testIfExist("/%%s/portal_configurator/" %%site_id) \
zope_connection = getConnection()
and not testIfExist("/%%s/sale_order_module/" %%site_id):
zope_connection.request(
print "Going to install testing scalability business configuration.."
'GET', '/%%s/business_configuration_module/1/build' %%site_id,
zope_connection = getConnection()
headers=header_dict
zope_connection.request(
)
'GET', '/%%s/business_configuration_module/1/build' %%site_id,
result = zope_connection.getresponse()
headers=header_dict
print "Build scalability business configuration..."
)
print result.read()
result = zope_connection.getresponse()
# Wait activities
print "Build scalability business configuration..."
waitFor0PendingActivities()
print result.read()
print "Scalability business configuration building: done."
# Wait activities
waitFor0PendingActivities()
# Create scalability users
print "Scalability business configuration building: done."
if testIfExist("/%%s/person_module/scalability_user/getTitle" %%site_id) \
and not testIfExist("/%%s/person_module/scalability_user_0/getTitle" %%site_id):
# Create scalability users
print "Going to create scalability users.."
if testIfExist("/%%s/person_module/scalability_user/getTitle" %%site_id) \
zope_connection = getConnection()
and not testIfExist("/%%s/person_module/scalability_user_0/getTitle" %%site_id):
zope_connection.request(
print "Going to create scalability users.."
'GET', '/%%s/init_scalability' %%site_id,
zope_connection = getConnection()
headers=header_dict
zope_connection.request(
)
'GET', '/%%s/init_scalability' %%site_id,
result = zope_connection.getresponse()
headers=header_dict
print "Creating scalaiblity users..."
)
assert(result.read()=="1")
result = zope_connection.getresponse()
# Wait activities
print "Creating scalaiblity users..."
waitFor0PendingActivities()
assert(result.read()=="1")
print "Scalability users creation: done."
# Wait activities
waitFor0PendingActivities()
print "Scalability users creation: done."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment