[Zope] A TinyTable problem
Ricardo Newbery
newbery@dvgroup.com
Sat, 16 Jun 2001 00:07:20 -0700
At 10:31 pm +0200 6/14/01, Dieter Maurer wrote:
>Ricardo Newbery writes:
> > ....
> > <dtml-call
> > expr="_.getitem(logtable2).setRow(name=username_forlog,count='1')">
> > </dtml-with>
> > ....
> > File
> > /usr/local/etc/httpd/zope2/Products/TinyTablePlus/TinyTablePlus.py,
> > line 511, in _GenerateIndex
> > (Object: log_users)
> > File /usr/local/zope2/lib/python/ZODB/PersistentMapping.py, line
> > 119, in __setitem__
> > AttributeError: __hash__
>Seems that the key has the wrong type (it lacks a "__hash__" method).
>
> I would check the type of "username_forlog").
> Probably, it is something different than you expect.
>
>
>Dieter
Thanks, it seems this was the problem. I forced username_forlog to
become a string (although I'm still not sure why it wasn't) and the
problems disappeared. I wonder why? Oh well, no time to stop and
figure it out -- gotta move on to the next problem.
Thanks again
Ric