Użytkownik Adrian Klaver napisał:
> Ran Web Update and used my app. Got following error:
> File "./stockForm.py", line 598, in stockSymFind
> biz.requery()
> File "/home/aklaver/dabo/dabo/biz/dBizobj.py", line 1031, in requery
> oldDataStructure = hash(self.DataStructure)
> TypeError: unhashable type: 'list'
>
> Problem introduced by Changeset 6423
>
Hi,
This is an excerpt from the Dabo documentation in regard to the
DataStructure property:
"""Returns the structure of the cursor in a tuple of 6-tuples.
| 0: field alias (str)
| 1: data type code (str)
| 2: pk field (bool)
| 3: table name (str)
| 4: field name (str)
| 5: field scale (int or None)
This information will try to come from a few places, in
order:
1. The explicitly-set DataStructure property
2. The backend table method
"""
Resolution of your problem is to change your DataStructure type
from list to tuple type.
If you are extending DataStructure, instead of using
DataStructure.append((...))
use
DataStructure += ((...),)
--
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]