Repository: qpid-proton Updated Branches: refs/heads/0.10.x b6e0b56f8 -> 58abb144d
NO-JIRA: fix relative paths to examples from tutorial Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/58abb144 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/58abb144 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/58abb144 Branch: refs/heads/0.10.x Commit: 58abb144da8fba20f9da6cd330c8c170834f0fc0 Parents: b6e0b56 Author: Gordon Sim <g...@redhat.com> Authored: Wed Aug 5 16:32:23 2015 +0100 Committer: Gordon Sim <g...@redhat.com> Committed: Wed Aug 5 16:36:49 2015 +0100 ---------------------------------------------------------------------- proton-c/bindings/python/docs/tutorial.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/58abb144/proton-c/bindings/python/docs/tutorial.rst ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/docs/tutorial.rst b/proton-c/bindings/python/docs/tutorial.rst index 6f7550c..302a3a4 100644 --- a/proton-c/bindings/python/docs/tutorial.rst +++ b/proton-c/bindings/python/docs/tutorial.rst @@ -11,7 +11,7 @@ simply striving for the shortest program possible, we'll aim for a more illustrative example while still restricting the functionality to sending and receiving a single message. -.. literalinclude:: ../../../../../examples/python/helloworld.py +.. literalinclude:: ../../../../examples/python/helloworld.py :lines: 21- :linenos: @@ -69,7 +69,7 @@ directly if desired. Let's modify our example to demonstrate this. -.. literalinclude:: ../../../../../examples/python/helloworld_direct.py +.. literalinclude:: ../../../../examples/python/helloworld_direct.py :lines: 21- :emphasize-lines: 11,21-22,24-25 :linenos: @@ -115,7 +115,7 @@ a single message between them. We'll start with a simple sender. -.. literalinclude:: ../../../../../examples/python/simple_send.py +.. literalinclude:: ../../../../examples/python/simple_send.py :lines: 21- :linenos: @@ -161,7 +161,7 @@ know the receiver got to. Now let's look at the corresponding receiver: -.. literalinclude:: ../../../../../examples/python/simple_recv.py +.. literalinclude:: ../../../../examples/python/simple_recv.py :lines: 21- :linenos: @@ -180,7 +180,7 @@ case one or other of the processes needs to accept incoming socket connections. Let's create a modified version of the receiving example that does this: -.. literalinclude:: ../../../../../examples/python/direct_recv.py +.. literalinclude:: ../../../../examples/python/direct_recv.py :lines: 21- :emphasize-lines: 13,25 :linenos: @@ -199,7 +199,7 @@ address to each example via the -a command line switch). We could equally well modify the original sender to allow the original receiver to connect to it. Again that just requires two modifications: -.. literalinclude:: ../../../../../examples/python/direct_send.py +.. literalinclude:: ../../../../examples/python/direct_send.py :lines: 21- :emphasize-lines: 15,28 :linenos: @@ -229,7 +229,7 @@ response. Note that we are still using a broker in this example. Our server will provide a very simple service: it will respond with the body of the request converted to uppercase. -.. literalinclude:: ../../../../../examples/python/server.py +.. literalinclude:: ../../../../examples/python/server.py :lines: 21- :linenos: @@ -242,7 +242,7 @@ requests with the same reply_to. Now let's create a simple client to test this service out. -.. literalinclude:: ../../../../../examples/python/client.py +.. literalinclude:: ../../../../examples/python/client.py :lines: 21- :linenos: @@ -264,7 +264,7 @@ Again, we could avoid having any intermediary process here if we wished. The following code implementas a server to which the client above could connect directly without any need for a broker or similar. -.. literalinclude:: ../../../../../examples/python/server_direct.py +.. literalinclude:: ../../../../examples/python/server_direct.py :lines: 21- :linenos: @@ -282,7 +282,7 @@ Many brokers offer the ability to consume messages based on a particular values of the headers. The following example shows how that can be achieved: -.. literalinclude:: ../../../../../examples/python/selected_recv.py +.. literalinclude:: ../../../../examples/python/selected_recv.py :lines: 21- :emphasize-lines: 10 :linenos: @@ -295,7 +295,7 @@ consumig them. This is done in AMQP by specifying a distribution mode of 'copy' (instead of 'move' which is the expected default for queues). An example of that is shown next: -.. literalinclude:: ../../../../../examples/python/queue_browser.py +.. literalinclude:: ../../../../examples/python/queue_browser.py :lines: 21- :emphasize-lines: 10 :linenos: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org