~oubiwann/+junk/rabbitmq-app-data

« back to all changes in this revision

Viewing changes to messaging/amqp/twisted/simple-web-store/01-orders/webstore.py

  • Committer: Duncan McGreggor
  • Date: 2009-06-22 06:06:07 UTC
  • Revision ID: oubiwann@lorien-20090622060607-dzclnr9ezx617gfi
* Cleaned up the web stores.
* Simplified the passed arg to the endpoint.
* Added a fake CRM XML-RPC server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
<body>
11
11
<p><strong>Shopping Cart</stong></p>
12
12
<form action="/processOrder" method="put">
 
13
<input type="hidden" name="orderID" value="01234" />
13
14
<input type="text" name="item" value="kilt"><br/>
14
15
<input type="text" name="size" value="large"<br/>
15
16
<input type="submit" value="Place Order" />
49
50
        # code for saving these to a database
50
51
        databaseCalls = "dummy"
51
52
        # code that creates a new order message
52
 
        endpoint.sendMessage(request)
 
53
        endpoint.sendMessage(request.args)
53
54
        try:
54
55
            request.write(THANKS)
55
56
        except Exception, error: