predicate is a SlicePredice object and consistency_level is a
ConsistencyLevel enum
It is helpful to look back at the cassandra.thrift definition instead of
only consuming the generated code.  We are working on adding more
documentation to the interface though.

Michael

On Sat, Aug 22, 2009 at 4:26 AM, <[email protected]> wrote:

>  r.client.get_slice( 'Keyspace1', 'tofu', r.ColumnParent('Related',
> 'Super1'),0, 0)
>
>
> this doesnt work
> what goes for predicate and consistency level
>
> getting this error
> cassandra/Cassandra.pyc in send_get_slice(self, keyspace, key,
> column_parent, predicate, consistency_level)
>     149     args.predicate = predicate
>     150     args.consistency_level = consistency_level
> --> 151     args.write(self._oprot)
>     152     self._oprot.writeMessageEnd()
>     153     self._oprot.trans.flush()
>
>
> Cassandra.pyc in write(self, oprot)
>     816     if self.predicate != None:
>     817       oprot.writeFieldBegin('predicate', TType.STRUCT, 4)
> --> 818       self.predicate.write(oprot)
>     819       oprot.writeFieldEnd()
>     820     if self.consistency_level != None:
>
> AttributeError: 'int' object has no attribute 'write'
>
>
>
> --
> Bidegg worlds best auction site
> http://bidegg.com
>

Reply via email to