Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
utils
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
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
f-interop-contributors
utils
Commits
c28f097a
Commit
c28f097a
authored
May 22, 2018
by
Federico Sismondi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added example
parent
bbdcd088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
event_bus_utils.py
event_bus_utils.py
+9
-5
No files found.
event_bus_utils.py
View file @
c28f097a
...
...
@@ -269,7 +269,6 @@ if __name__ == '__main__':
except
KeyError
as
e
:
AMQP_URL
=
"amqp://guest:guest@localhost/"
def
callback_function
(
message_received
):
print
(
"Callback function received:
\n\t
"
+
repr
(
message_received
))
...
...
@@ -316,7 +315,12 @@ if __name__ == '__main__':
con
=
pika
.
BlockingConnection
(
pika
.
URLParameters
(
AMQP_URL
))
channel
=
con
.
channel
()
ui_request
=
MsgUiRequestConfirmationButton
()
print
(
"publishing ..
%
s"
%
repr
(
ui_request
))
ui_reply
=
amqp_request
(
con
,
ui_request
,
'dummy_component'
)
print
(
repr
(
ui_reply
))
# ui_request = MsgUiRequestConfirmationButton()
# print("publishing .. %s" % repr(ui_request))
# ui_reply = amqp_request(con, ui_request, 'dummy_component')
# print(repr(ui_reply))
req
=
MsgUiRequestSessionConfiguration
()
ui_reply
=
amqp_request
(
con
,
req
,
'dummy_component'
)
print
(
ui_reply
.
users
)
\ No newline at end of file
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