Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
klaus_wendelin
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eteri
klaus_wendelin
Commits
386366ea
Commit
386366ea
authored
Jun 07, 2019
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust for wendelin-standalone instance.
parent
1ce1f2aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
utils/sample_wendelin_upload.py
utils/sample_wendelin_upload.py
+5
-5
No files found.
utils/sample_wendelin_upload.py
View file @
386366ea
...
@@ -7,11 +7,11 @@ Sample Python script to ingest into a Wendelin instance.
...
@@ -7,11 +7,11 @@ Sample Python script to ingest into a Wendelin instance.
import
msgpack
import
msgpack
import
requests
import
requests
# configure for your instance
parameters below
# configure for your instance
reference
=
""
reference
=
"
test-1
"
username
=
""
username
=
"
zope
"
password
=
""
password
=
"
insecure
"
ingestion_policy_url
=
"http
s://%s:%s@....../erp5/portal_ingestion_policies/.....
/ingest"
%
(
username
,
password
)
ingestion_policy_url
=
"http
://%s:%s@localhost:20000/erp5/portal_ingestion_policies/test-1
/ingest"
%
(
username
,
password
)
data
=
{
"msg"
:
'Hello World! Zdravej Sviat!'
}
data
=
{
"msg"
:
'Hello World! Zdravej Sviat!'
}
payload
=
msgpack
.
packb
([
0
,
data
],
use_bin_type
=
True
)
payload
=
msgpack
.
packb
([
0
,
data
],
use_bin_type
=
True
)
...
...
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