Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
slapos
Commits
da45fd0d
Commit
da45fd0d
authored
Jul 15, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
f062f671
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
31 deletions
+11
-31
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
+11
-31
No files found.
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
View file @
da45fd0d
...
...
@@ -79,45 +79,25 @@ if scalability:
else:
raise ValueError("Protocol not implemented")
zope_connection.request(
'POST', '/%%s/ERP5Site_fixConfigurationConsistency' %%(site_id),
urllib.urlencode({
'update_method': 'ERP5Site_updateConfigurationConsistency',
'dialog_id':'ERP5Site_viewCheckConsistency',
'cancel_url':'%%s://%%s/%%s/ERP5Site_viewCheckConsistency' %%(protocol, host, site_id),
'dialog_method':'ERP5Site_fixConfigurationConsistency',
'dialog_category':'None',
'object_path':'/%%s' %%(site_id),
'form_id':'view',
'select_favorite':'',
'select_module':'',
'select_language':'en',
'all_languages':'1',
'field_your_search_text':'Search',
'default_field_your_enable_alarm:int':'0',
'field_your_enable_alarm':'on',
'list_selection_name':'erp5_site_check_consistency_selection',
'listbox_list_selection_name':'erp5_site_check_consistency_selection',
'listbox_title':'',
'uids:list':'598',
'uids:list':'595',
'uids:list':'599',
'listbox_uid:list':'598',
'listbox_uid:list':'595',
'listbox_uid:list':'599',
'Base_callDialogMethod:method':'',
}),
headers=header_dict)
'GET', '/%%s/ERP5Site_launchFixConfigurationConsistency' %%(site_id),
headers=header_dict
)
print "
POST
sent"
print "
Check consistency
sent"
result = zope_connection.getresponse()
print result.read()
print "POST read"
print "Response read"
# Dirty way to wait configurator availability
time.sleep(30)
# Here check if configurator is available
# Send a request ? How to know if it is ready/available ?
configurator_available = False
# Here check if S&MB not already installed
configurator_already_applied = False
if configurator_available and not configurator_already_applied:
# install small and medium business via configurator
pass
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