On 8/9/10 1:37 AM, Jacek Kałucki wrote:
> Hi,
>
> I have problem with mapping MS SQL 'bit' type to Dabo 'B' type
> and finally, Python boolean type.
> Pymssql return this type as boolean, but Dabo convert it
> by default to integer type, what is correct behaviour I think.
> Data updating works fine, but it fails when I'm trying
> to add new row, because integer type is expected,
> while dCheckBox control bound to filed returns boolean instead.
> As far as I can see, Dabo type conversion mechanism
> between persistence and presentation layer is unidirectional.
> Only solution I have found working is to overwrite bizobj
> setFieldVal() method to convert such data.
> Is my approach correct or I missed some important Dabo feature?

You can set the biz.DataStructure explicitly, to tell Dabo that this field is 
boolean 
("B"). I've taken to always setting DataStructure explicitly, even though it 
isn't 
always required.

Paul

_______________________________________________
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