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
75733bad
Commit
75733bad
authored
Jul 11, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_bootstrap: Fix fix consistency
parent
aa3c5d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
13 deletions
+31
-13
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
+31
-13
No files found.
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
View file @
75733bad
...
@@ -59,8 +59,9 @@ if result.status == 204: # and (result.read() == "False"):
...
@@ -59,8 +59,9 @@ if result.status == 204: # and (result.read() == "False"):
# Scalability: Install and configure small buisiness
# Scalability: Install and configure small buisiness
is_scalability_case =
%(scalability)s
is_scalability_case =
"%(scalability)s" == "True"
if is_scalability_case:
if is_scalability_case:
print "Scalability case"
# Here check if configurator is available
# Here check if configurator is available
configurator_available = False
configurator_available = False
if not configurator_available:
if not configurator_available:
...
@@ -77,20 +78,37 @@ if is_scalability_case:
...
@@ -77,20 +78,37 @@ if is_scalability_case:
'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',
'dialog_method': 'ERP5Site_fixConfigurationConsistency',
# TODO: change ip
'field_your_enable_alarm': 'on',
'cancel_url'='https%3A%2F%2F192.168.241.110%3A2153%2Ferp5%2FERP5Site_viewCheckConsistency',
'object_path': os.path.join('/', site_id),
'dialog_method'='ERP5Site_fixConfigurationConsistency',
'uids;list':'598',
'dialog_category'='None',
'listbox_uid;list':'598',
'object_path'='%2Ferp5',
'uids;list':'595',
'form_id'='view',
'listbox_uid;list':'595',
'select_favorite'='',
'uids;list':'599',
'select_module'='',
'listbox_uid;list':'599',
'select_language'='en',
'all_languages'='1',
'field_your_search_text'='Search',
'default_field_your_enable_alarm%3Aint'='0',
'field_your_enable_alarm'='on',
'list_selection_name'='erp5_site_check_consistency_selection',
'listbox_list_selection_name'='erp5_site_check_consistency_selection',
'md5_object_uid_list'='d751713988987e9331980363e24189ce',
'listbox_title'='',
'uids%3Alist'='598',
'listbox_uid%3Alist'='598',
'listbox_uid%3Alist'='595',
'listbox_uid%3Alist'='599',
'Base_callDialogMethod%3Amethod'='',
}),
}),
headers=header_dict)
headers=header_dict
)
print "POST sent"
result = zope_connection.getresponse()
result = zope_connection.getresponse()
result.read()
print result.read()
print "POST read"
# Here check if configurator is available
# Here check if configurator is available
configurator_available = False
configurator_available = False
...
...
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