Re: TypeError: unhashable instance

2009-08-27 Thread mobiledreamers
wat is  record-refactor branch of Lazyboy
how do i get it ?

On Wed, Aug 26, 2009 at 6:16 PM, i...@digg.com wrote:

 On Aug 26, 2009, at 5:42 PM, mobiledream...@gmail.com wrote:

 Resyncing to ian eure digg lazyboy - still not working same error persists

 Please try the record-refactor branch of Lazyboy. This will be merged to
 master  and 0.6.0 should be out in a week or so.
 I haven't run the examples, but things are pretty much working for me.

  - Ian




-- 
Bidegg worlds best auction site
http://bidegg.com


Re: Newbe´s question

2009-08-27 Thread mobiledreamers
just running your example

 python /tmp/columnfamily.py
{'table': 'Keyspace1', 'superkey': None, 'key':
'f8b29cc4193b42bc8a188615855cfa4e', 'family': 'Standard1', 'supercol': None}
{'username': 'ieure', 'email': 'i...@digg.com'}
True
Traceback (most recent call last):
  File /tmp/columnfamily.py, line 65, in module
u.save()   # - {'username': 'ieure', 'email': 'i...@digg.com'}
  File /home/mark/work/common/lazyboy/columnfamily.py, line 127, in save
self.load(self.pk.key)
  File /home/mark/work/common/lazyboy/columnfamily.py, line 92, in load
self._clean()
  File /home/mark/work/common/lazyboy/columnfamily.py, line 46, in _clean
map(self.__delitem__, self.keys())
  File /home/mark/work/common/lazyboy/columnfamily.py, line 86, in
__delitem__
self._deleted[self._columns[item]] = True
TypeError: unhashable instance


On Wed, Aug 26, 2009 at 6:11 PM, i...@digg.com wrote:

 Don't call __hash__, there is no such method.


 On Aug 26, 2009, at 5:39 PM, mobiledream...@gmail.com wrote:

 any ideas on how 2 fix this?
 Traceback (most recent call last):
   File /tmp/a.py, line 3, in module
 print cassandra.ttypes.Column().__hash__()
 AttributeError: Column instance has no attribute '__hash__'

 *

 #!/usr/bin/python
 import cassandra.ttypes
 print cassandra.ttypes.Column().__hash__()
 *
 On Wed, Aug 26, 2009 at 5:13 PM, Evan Weaver  ewea...@gmail.com
 ewea...@gmail.com wrote:

 Clients section in the README.txt seems best to me.

 Evan


 On Wed, Aug 26, 2009 at 5:09 PM, Ian Holsman i...@holsman.net
 i...@holsman.net wrote:
  isn't there a way to use svn:external or svn:link to pull them in from
 their
  own repos?
  (not sure how legal it would be).
  On Aug 27, 2009, at 10:03 AM, Jonathan Ellis wrote:
 
  I thought about that, but I really don't want Cassandra committers to
  have to be in the business of updating them all when we make changes,
  and having them in the repo creates that expectation even in contrib.
 
  On Wed, Aug 26, 2009 at 6:57 PM, Ian Holsman i...@holsman.net
 i...@holsman.net wrote:
 
  would it be worthwhile to start including these clients in the core
  codebase? in some kind of 'client' or 'contrib' directory?
 
  maybe even mentioning the 'popular' clients that people use in the
 readme
  (with links to them) would be good.
 
  On Aug 27, 2009, at 9:18 AM, Sal Fuentes wrote:
 
  Just would like to say great job so far.
 
  On Wed, Aug 26, 2009 at 4:01 PM, Ian Eure  i...@digg.com
 i...@digg.com wrote:
  On Aug 25, 2009, at 2:46 PM, Drew Schleck wrote:
 
  For anyone using my branch of Lazyboy, Ian Eure pulled my work,
  improved it, and more. You ought to switch back to his version.
 
  I'm doing some heavy refactoring all this week, to bring it up to
  Cassandra trunk and simplify/genericize it wherever possible. I
 should
  have
  something to show in a day or two.
 
  Feel free to contact me if you have questions or requests.
 
   - Ian
 
 
 
  --
  Salvador Fuentes Jr.
  323-540-4SAL
 
  --
  Ian Holsman
  i...@holsman.neti...@holsman.net
 
 
 
 
 
  --
  Ian Holsman
  i...@holsman.neti...@holsman.net
 
 
 
 



 --
 Evan Weaver




 --
 Bidegg worlds best auction site
 http://bidegg.comhttp://bidegg.com




-- 
Bidegg worlds best auction site
http://bidegg.com