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
Klaus Wölfel
slapos
Commits
497492a6
Commit
497492a6
authored
Jul 20, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new connection and get result when try to create new site
parent
60e67974
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
+7
-0
No files found.
slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in
View file @
497492a6
...
@@ -22,6 +22,9 @@ result = zope_connection.getresponse()
...
@@ -22,6 +22,9 @@ result = zope_connection.getresponse()
if result.status == 204: # and (result.read() == "False"):
if result.status == 204: # and (result.read() == "False"):
# Use a new connection
zope_connection = httplib.HTTPConnection(host)
# Create the expected ERP5 instance
# Create the expected ERP5 instance
zope_connection.request(
zope_connection.request(
'POST', '/manage_addProduct/ERP5/manage_addERP5Site',
'POST', '/manage_addProduct/ERP5/manage_addERP5Site',
...
@@ -35,4 +38,8 @@ if result.status == 204: # and (result.read() == "False"):
...
@@ -35,4 +38,8 @@ if result.status == 204: # and (result.read() == "False"):
# Wait for the erp5 response, to prevent multiple requests
# Wait for the erp5 response, to prevent multiple requests
# been done by the same script.
# been done by the same script.
result = zope_connection.getresponse()
result = zope_connection.getresponse()
# Read result make sure the site really finished to
#created the ERP5 site.
result.read()
print "ERP5 site created."
print "ERP5 site created."
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