Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
d357623a
Commit
d357623a
authored
Nov 26, 2012
by
Romain Courteaud
🐸
Committed by
Sebastien Robin
Aug 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change file name.
parent
a63785bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/bin/bigfile_client_example.py
product/ERP5/bin/bigfile_client_example.py
+2
-2
No files found.
product/ERP5/bin/bigfile_client_example.py
View file @
d357623a
input_file
=
open
(
'
input_file.webm
'
,
'r'
)
input_file
=
open
(
'
big_file.log
'
,
'r'
)
import
httplib
connection
=
httplib
.
HTTPConnection
(
'192.168.242.68:12001'
)
...
...
@@ -17,7 +17,7 @@ headers = {
'Authorization'
:
'Basic %s'
%
base64string
,
}
connection
.
request
(
'POST'
,
"/erp5/portal_contributions/newContent?"
\
"portal_type=Big%20File&filename=
input_file.webm
&container_path=big_file_module&data="
,
""
,
headers
)
"portal_type=Big%20File&filename=
big_file.log
&container_path=big_file_module&data="
,
""
,
headers
)
result
=
connection
.
getresponse
()
path
=
result
.
getheader
(
"X-Document-Location"
)
result
.
close
()
...
...
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