Author: mcslee
Date: Thu Jan 15 14:10:13 2009
New Revision: 734839
URL: http://svn.apache.org/viewvc?rev=734839&view=rev
Log:
THRIFT-268: Python example is no longer valid
Author: Esteve Fermandez
Modified:
incubator/thrift/site/dynathrift/index.php
incubator/thrift/site/publish/index.html
Modified: incubator/thrift/site/dynathrift/index.php
URL:
http://svn.apache.org/viewvc/incubator/thrift/site/dynathrift/index.php?rev=734839&r1=734838&r2=734839&view=diff
==============================================================================
--- incubator/thrift/site/dynathrift/index.php (original)
+++ incubator/thrift/site/dynathrift/index.php Thu Jan 15 14:10:13 2009
@@ -60,9 +60,9 @@
<pre>'.txt2html(
'# Make an object
-up = UserProfile({"uid" : 1,
- "name" :"Mark Slee",
- "blurb" : "I\'ll find something to put here."})
+up = UserProfile(uid=1,
+ name="Mark Slee",
+ blurb="I\'ll find something to put here.")
# Talk to a server via TCP sockets, using a binary protocol
transport = TSocket.TSocket("localhost", 9090)
Modified: incubator/thrift/site/publish/index.html
URL:
http://svn.apache.org/viewvc/incubator/thrift/site/publish/index.html?rev=734839&r1=734838&r2=734839&view=diff
==============================================================================
--- incubator/thrift/site/publish/index.html (original)
+++ incubator/thrift/site/publish/index.html Thu Jan 15 14:10:13 2009
@@ -43,9 +43,9 @@
<p>Thrift does the heavy lifting. Instead of writing a load of boilerplate
code to serialize and transport your objects and invoke remote methods, you can
get right down to business. Here is some sample Python client code:</p>
<pre># Make an object
-up = UserProfile({"uid" : 1,
- "name" :"Mark Slee",
- "blurb" : "I'll find something to put
here."})
+up = UserProfile(uid=1,
+ name="Mark Slee",
+ blurb="I'll find something to put here.")
# Talk to a server via TCP sockets, using a binary protocol
transport = TSocket.TSocket("localhost", 9090)