Am 21.11.2010 13:00, schrieb Jacek Kałucki:
> Użytkownik Sibylle Koczian napisał:
>>>
>> I finally found the time to try your modified dTextBox (last week one of
>> my old Python scripts broke quite spectacularly in several ways at once
>> ...). But where is "ustr" defined?
>>
> Hi.
>
> Use:
> from dabo.lib.utils import ustr
>

Thank you, now I can see it. Another possibility: cast the interval 
field to text in the bizobj:

self.addField("CAST(ivfield) TO TEXT", ivfieldalias)

But that doesn't let me change and save it either, because the update 
statement uses "ivfieldalias" as the field name. If I could change that, 
it might work, because PostgreSQL will take a string as value for the field:

UPDATE mytable SET ivfield = '3 mons'

would work. No mx, no conversion to timedelta by psycopg2.

Greetings
Sibylle


_______________________________________________
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