Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for 
change notification.

The following page has been changed by dehora:
http://wiki.apache.org/cassandra/ClientExamples

The comment on the change is:
fixed python typos

------------------------------------------------------------------------------
  
  try:
      transport.open()
-     key_user_id = "1";
+     key_user_id = "1"
-     timestamp = time.time();
+     timestamp = time.time()
-     client.insert("users",key_user_id,"base_attributes:name", "Chris 
Goffinet", timestamp, false);
+     client.insert("users",key_user_id,"base_attributes:name", "Chris 
Goffinet", timestamp, False)
-     client.insert("users",key_user_id,"base_attributes:age", "24", timestamp, 
false);
+     client.insert("users",key_user_id,"base_attributes:age", "24", timestamp, 
False)
- 
-     start = -1;
+     start = -1
-     end = -1;
+     end = -1
-     result = client.get_slice("users", key_user_id,"base_attributes", start, 
end);
+     result = client.get_slice("users", key_user_id,"base_attributes", start, 
end)
- 
-     print result
+     print result    
-     
  except Thrift.TException, tx:
      print 'Thrift: %s' % tx.message
  finally:

Reply via email to