Commit 2f3cc83e authored by Benjamin Blanc's avatar Benjamin Blanc

Fix typo

parent 1dd50804
...@@ -105,7 +105,7 @@ class Recipe(GenericBaseRecipe): ...@@ -105,7 +105,7 @@ class Recipe(GenericBaseRecipe):
if self.options.get('zope-port'): if self.options.get('zope-port'):
zope_port = self.options['zope-port'] zope_port = self.options['zope-port']
elif self.options.get('zope-url'): elif self.options.get('zope-url'):
zope_port = zope_parsed.port zope_port = str(zope_parsed.port)
else: else:
zope_port = "8080" zope_port = "8080"
# Zope username and password # Zope username and password
......
...@@ -10,7 +10,7 @@ host = "%(host)s" ...@@ -10,7 +10,7 @@ host = "%(host)s"
site_id = "%(site_id)s" site_id = "%(site_id)s"
mysql_url = "%(sql_connection_string)s" mysql_url = "%(sql_connection_string)s"
protocol = "%(protocol)s" protocol = "%(protocol)s"
scalability = True scalability = "%(scalability)s" == "True"
erp5_catalog_storage = 'erp5_mysql_innodb_catalog' erp5_catalog_storage = 'erp5_mysql_innodb_catalog'
...@@ -37,7 +37,7 @@ if result.status == 204: # and (result.read() == "False"): ...@@ -37,7 +37,7 @@ if result.status == 204: # and (result.read() == "False"):
elif protocol == 'http': elif protocol == 'http':
zope_connection = httplib.HTTPConnection(host) zope_connection = httplib.HTTPConnection(host)
else: else:
raise ValueError("Protocol pot implemented") raise ValueError("Protocol not implemented")
# Create the expected ERP5 instance # Create the expected ERP5 instance
zope_connection.request( zope_connection.request(
...@@ -54,7 +54,7 @@ if result.status == 204: # and (result.read() == "False"): ...@@ -54,7 +54,7 @@ if result.status == 204: # and (result.read() == "False"):
result = zope_connection.getresponse() result = zope_connection.getresponse()
# Read result make sure the site really finished to # Read result make sure the site really finished to
#created the ERP5 site. # created the ERP5 site.
result.read() result.read()
print "ERP5 site created." print "ERP5 site created."
...@@ -79,28 +79,28 @@ if scalability: ...@@ -79,28 +79,28 @@ if scalability:
'POST', '/ERP5Site_updateConfigurationConsistency', 'POST', '/ERP5Site_updateConfigurationConsistency',
urllib.urlencode({ urllib.urlencode({
'update_method': 'ERP5Site_updateConfigurationConsistency', 'update_method': 'ERP5Site_updateConfigurationConsistency',
'dialog_id'='ERP5Site_viewCheckConsistency', 'dialog_id':'ERP5Site_viewCheckConsistency',
'cancel_url'=cancel_url, 'cancel_url':cancel_url,
'dialog_method'='ERP5Site_fixConfigurationConsistency', 'dialog_method':'ERP5Site_fixConfigurationConsistency',
'dialog_category'='None', 'dialog_category':'None',
'object_path'='%2Ferp5', 'object_path':'%2Ferp5',
'form_id'='view', 'form_id':'view',
'select_favorite'='', 'select_favorite':'',
'select_module'='', 'select_module':'',
'select_language'='en', 'select_language':'en',
'all_languages'='1', 'all_languages':'1',
'field_your_search_text'='Search', 'field_your_search_text':'Search',
'default_field_your_enable_alarm%3Aint'='0', 'default_field_your_enable_alarm%3Aint':'0',
'field_your_enable_alarm'='on', 'field_your_enable_alarm':'on',
'list_selection_name'='erp5_site_check_consistency_selection', 'list_selection_name':'erp5_site_check_consistency_selection',
'listbox_list_selection_name'='erp5_site_check_consistency_selection', 'listbox_list_selection_name':'erp5_site_check_consistency_selection',
'md5_object_uid_list'='d751713988987e9331980363e24189ce', 'md5_object_uid_list':'d751713988987e9331980363e24189ce',
'listbox_title'='', 'listbox_title':'',
'uids%3Alist'='598', 'uids%3Alist':'598',
'listbox_uid%3Alist'='598', 'listbox_uid%3Alist':'598',
'listbox_uid%3Alist'='595', 'listbox_uid%3Alist':'595',
'listbox_uid%3Alist'='599', 'listbox_uid%3Alist':'599',
'Base_callDialogMethod%3Amethod'='', 'Base_callDialogMethod%3Amethod':'',
}), }),
headers=header_dict) headers=header_dict)
...@@ -117,5 +117,3 @@ if scalability: ...@@ -117,5 +117,3 @@ if scalability:
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