As posted by Peter Seckler and moved to a new thread.
Hi,

> Please don't hijack threads... 

hijacking threads? I wasn't aware of that. I'm pretty new to mailing lists.
What exactly do you mean?

> ...and trim your line lenght.

Ok, on that. I am going to trim my lines from now on. Long lines are not a
problem for me, so I didn't think that this might be a problem for others.

>Please provide the code you used to produce the error.  I'm interested in the
>exact parameters (i.e. mask, format, etc...) that are passed.  I worked on
>the class about three months ago and I don't recall issues with dates.  I had
>no way to test locale (other than my own 'en') and that might be are trouble.
>Also please provide your database information.

I'm using PostgreSQL database version 8.3.5 and psycopg 2.0.8. 

Here is the Code for the bizobj. I omit some of the fields because they are
not related to the problem:

class MaBiz(dabo.biz.dBizobj):
        def afterInit(self):
                self.DataSource = "public.ma"
                self.KeyField = "pkid"
                self.addField("ma.pkid")
                self.addField("ma.name")
                self.addField("ma.vorname")
                self.addField("ma.eintritt")
                self.addField("ma.gebdat")
                self.addFrom("ma")
                self.addOrderBy("ma.name")

                self.DefaultValues = None

The table:
----------

CREATE TABLE ma (
    pkid serial primary key,
    name text,
    vorname text,
    gebdat date,
    eintritt date
);

Code from main.py:
------------------

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import dabo
import sys
sys.path.append("ui")
import MainForm
dabo.ui.loadUI("wx")
dabo.autoBindEvents = False

app = dabo.dApp()
app.MainFormClass = MainForm.MainForm
app.NoneDisplay = ""
app.start()

Relevant code from the panel of the dForm:
---------------------------------

class MainPanel(dabo.ui.dPanel):
        def afterInit(self):
                maBiz = self.Form.getBizobj("public.ma")
                self.Sizer = vs = dabo.ui.dSizer('v')
                gs = dabo.ui.dGridSizer(MaxRows=6, HGap=4, VGap=3)
                gs.append(MaLabel(self, Caption="Name:"))
                gs.append(MaTextBox(self, DataSource="public.ma", 
DataField="name"))
                gs.append(MaLabel(self, Caption="Vorname:"))
                gs.append(MaTextBox(self, DataSource="public.ma", 
DataField="vorname"))

                gs.append(MaLabel(self, Caption="Eintritt:"))
                gs.append(DateBox(self, DataSource="public.ma", 
DataField="eintritt"))
                gs.append(MaLabel(self, Caption="Geburtsdatum:"))
                gs.append(DateBox(self, DataSource="public.ma", 
DataField="gebdat"))

                vs.append(gs, layout="expand")

Code for the class DateBox:
---------------------------

class DateBox(dabo.ui.dMaskedTextBox):
        
        def initProperties(self):
                self.Format = "date-eu"
                self.ValueMode = "Masked"


My system locale is de_DE.utf8.

If I start the application, two error messages appear in the command line,
one for each field 'eintritt' and 'gebdat' (see my previous post). If I try
to close the application just after that (without changing any data), I'm
beeing asked whether I want to save the changes. If I answer 'yes', I see a
popup with "Speichern fehlgeschlagen" (Failed to save), and I see the
following error message in the console:

Dabo Error Log: Sat Feb 21 18:02:02 2009: Error in scanChangedRows:

Sorry for the lengthy post, but I didn't want to omit possible relevant code.

Best regards

Peter
-- 
John Fabiani

_______________________________________________
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