On Monday, November 22, 2010 06:32:05 am Sibylle Koczian wrote:
> 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

What is the data type returned from psycopg?  If you review what is being done 
in dbPostgres.py (that is where the python data types are being set) it might 
be possible to add the data type.

I have always wanted to extend Dabo to include arrays and other data types 
available from Postgresql.

Johnf
_______________________________________________
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