Commit da45fd0d authored by Benjamin Blanc's avatar Benjamin Blanc

up

parent f062f671
...@@ -79,45 +79,25 @@ if scalability: ...@@ -79,45 +79,25 @@ if scalability:
else: else:
raise ValueError("Protocol not implemented") raise ValueError("Protocol not implemented")
zope_connection.request( zope_connection.request(
'POST', '/%%s/ERP5Site_fixConfigurationConsistency' %%(site_id), 'GET', '/%%s/ERP5Site_launchFixConfigurationConsistency' %%(site_id),
urllib.urlencode({ headers=header_dict
'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)
print "POST sent" print "Check consistency sent"
result = zope_connection.getresponse() result = zope_connection.getresponse()
print result.read() print result.read()
print "POST read" print "Response read"
# Dirty way to wait configurator availability
time.sleep(30)
# Here check if configurator is available # Here check if configurator is available
# Send a request ? How to know if it is ready/available ?
configurator_available = False configurator_available = False
# Here check if S&MB not already installed # Here check if S&MB not already installed
configurator_already_applied = False configurator_already_applied = False
if configurator_available and not configurator_already_applied: if configurator_available and not configurator_already_applied:
# install small and medium business via configurator # install small and medium business via configurator
pass pass
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