Skip to content

Commit

Permalink
Merge remote branch 'nickmbailey/0.8' into multiversion
Browse files Browse the repository at this point in the history
  • Loading branch information
thobbs committed Apr 13, 2011
2 parents ccb3641 + 43132c0 commit a6a3aef
Show file tree
Hide file tree
Showing 7 changed files with 1,748 additions and 246 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
python-telephus (0.7.1) unstable; urgency=low

* Tyler Hobbs <tyler@datastax.com>:
+ Restore compatibility with Python 2.5

-- paul cannon <paul@riptano.com> Wed, 30 Mar 2011 12:31:30 -0500

python-telephus (0.7) unstable; urgency=low

* paul cannon <paul@riptano.com>:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from distutils.core import setup
setup(
name='telephus',
version='0.7',
version='0.7.1',
description='connection pooled, low-level client API for Cassandra in Twisted python',
author='brandon@faltering.com',
url='http://github.com/driftx/Telephus',
Expand Down
21 changes: 21 additions & 0 deletions telephus/cassandra/Cassandra-remote
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level)'
print ' get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level)'
print ' void insert(string key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level)'
print ' void add(string key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level)'
print ' void remove(string key, ColumnPath column_path, i64 timestamp, ConsistencyLevel consistency_level)'
print ' void remove_counter(string key, ColumnPath path, ConsistencyLevel consistency_level)'
print ' void batch_mutate( mutation_map, ConsistencyLevel consistency_level)'
print ' void truncate(string cfname)'
print ' describe_schema_versions()'
Expand All @@ -49,6 +51,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' string system_drop_keyspace(string keyspace)'
print ' string system_update_keyspace(KsDef ks_def)'
print ' string system_update_column_family(CfDef cf_def)'
print ' CqlResult execute_cql_query(string query, Compression compression)'
print ''
sys.exit(0)

Expand Down Expand Up @@ -159,12 +162,24 @@ elif cmd == 'insert':
sys.exit(1)
pp.pprint(client.insert(args[0],eval(args[1]),eval(args[2]),eval(args[3]),))

elif cmd == 'add':
if len(args) != 4:
print 'add requires 4 args'
sys.exit(1)
pp.pprint(client.add(args[0],eval(args[1]),eval(args[2]),eval(args[3]),))

elif cmd == 'remove':
if len(args) != 4:
print 'remove requires 4 args'
sys.exit(1)
pp.pprint(client.remove(args[0],eval(args[1]),eval(args[2]),eval(args[3]),))

elif cmd == 'remove_counter':
if len(args) != 3:
print 'remove_counter requires 3 args'
sys.exit(1)
pp.pprint(client.remove_counter(args[0],eval(args[1]),eval(args[2]),))

elif cmd == 'batch_mutate':
if len(args) != 2:
print 'batch_mutate requires 2 args'
Expand Down Expand Up @@ -267,6 +282,12 @@ elif cmd == 'system_update_column_family':
sys.exit(1)
pp.pprint(client.system_update_column_family(eval(args[0]),))

elif cmd == 'execute_cql_query':
if len(args) != 2:
print 'execute_cql_query requires 2 args'
sys.exit(1)
pp.pprint(client.execute_cql_query(args[0],eval(args[1]),))

else:
print 'Unrecognized method %s' % cmd
sys.exit(1)
Expand Down
Loading

0 comments on commit a6a3aef

Please sign in to comment.