From: stantonk <stant...@gmail.com>
Date: Thu, 1 Nov 2012 16:29:45 -0700 (PDT)
Local: Thurs, Nov 1 2012 7:29 pm
Subject: Custom packing & unpacking
I am trying to do some custom packing/unpacking and am not having much luck. Basically, I have a CF like this: create column family CF And pycassa happily marshals the data like so: >>> CF.get(123, column_count=1) OrderedDict([((u'astring', 123, u'anotherstring'), {'ajson': 'blob'})]) And I am manually converting the column names from a tuple of (u'astring', What I want is to have these conversion steps on the column names be class MyType(CassandraType): @staticmethod @staticmethod This obviously doesn't work because by the time these methods are called, '^TastringP*i!^Tanotherstring' looks like there's some padding character in the front of the strings, ^T, If I try inheriting from CompositeType instead of CassandraType but try the btw, I am on pycassa 1.6.0, but I tried in 1.7.2 also and got the same Thanks, hopefully there is enough info here...I tried tracing the You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||