Hi Jacek,

You might want to update the PyCon 2010 tutorial which uses a list,
not tuple, for bizobj DataStructure in the "Creating Many-to-many
relationship" section,
https://docs.google.com/View?id=dg79jzmg_85f737ww6x&pli=1#Creating_the_Many_Many_Relatio
.

Also, regarding commit 6457: Very good that you've added an explicit
exception, but maybe you want to also add a small note saying that
"this exception is raised due to a recent change in the Dabo framework
API." Or, alternatively, add a post on the user-list -- I believe it
is important to be aware about informing the uses about API changes,
everything else is disrespecting the users. (I know that dabo is still
only "0.9.8", but on the other hand Ed and Paul have stated that the
framework it self is "stable".)

That said, thank you for your wonderful work on the framework, Jacek -
We really do appreciate it. Also, don't think I'm against changing the
API (that's bound to happen when making improvements) - i'm just
saying it would be nice with a little heads up :-)


Best regards,

Rasmus Sorensen.


2011/2/23 Jacek Kałucki <[email protected]>:
> 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]
>
_______________________________________________
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]

Reply via email to