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
Jean-Paul Smets
slapos
Commits
f062f671
Commit
f062f671
authored
Jul 12, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
05bb51fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
+9
-6
No files found.
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
View file @
f062f671
...
...
@@ -3,6 +3,7 @@
import httplib
import urllib
import base64
import time
user = "%(user)s"
password = "%(password)s"
...
...
@@ -55,10 +56,14 @@ if result.status == 204: # and (result.read() == "False"):
# Read result make sure the site really finished to
# created the ERP5 site.
result.read()
print
result.read()
print "ERP5 site created."
#dirty way to wait erp5 site creation
time.sleep(30)
# Scalability: Install and configure small buisiness
if scalability:
print "Scalability case"
...
...
@@ -74,14 +79,14 @@ if scalability:
else:
raise ValueError("Protocol not implemented")
zope_connection.request(
'POST', '/
erp5/ERP5Site_fixConfigurationConsistency'
,
'POST', '/
%%s/ERP5Site_fixConfigurationConsistency' %%(site_id)
,
urllib.urlencode({
'update_method': 'ERP5Site_updateConfigurationConsistency',
'dialog_id':'ERP5Site_viewCheckConsistency',
'cancel_url':'
https://192.168.241.110:2153%2Ferp5%2FERP5Site_viewCheckConsistency'
,
'cancel_url':'
%%s://%%s/%%s/ERP5Site_viewCheckConsistency' %%(protocol, host, site_id)
,
'dialog_method':'ERP5Site_fixConfigurationConsistency',
'dialog_category':'None',
'object_path':'/
erp5'
,
'object_path':'/
%%s' %%(site_id)
,
'form_id':'view',
'select_favorite':'',
'select_module':'',
...
...
@@ -92,8 +97,6 @@ if scalability:
'field_your_enable_alarm':'on',
'list_selection_name':'erp5_site_check_consistency_selection',
'listbox_list_selection_name':'erp5_site_check_consistency_selection',
#TODO: change MD5 (old: d751713988987e9331980363e24189ce)
'md5_object_uid_list':'',
'listbox_title':'',
'uids:list':'598',
'uids:list':'595',
...
...
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