Ed Leafe schrieb:
>       My guess is that the problem is a Gtk issue with focus, and that  
> activeControlValid() is not finding the textbox as the active control.  
> Would you have the time to do the following: revert dDateTextBox.py to  
> r5194, and then modify dFormMixin.py as follows:
> 
> 237 def activeControlValid(self):
> 238   """ Force the control-with-focus to fire its KillFocus code.
> 239
> 240   The bizobj will only get its field updated during the control's
> 241   KillFocus code. This function effectively commands that update to
> 242   happen before it would have otherwise occurred.
> 243   """
> 244   ac = self.ActiveControl
>       print "ACTIVE CONTROL", ac,
>       try:
>               print ac.Value
>       except:
>               print
> 245   if ac is not None and isinstance(ac,  
> dabo.ui.dDataControlMixinBase.dDataControlMixinBase):
> 246           if not hasattr(ac, "_oldVal") or (not ac._oldVal) or  
> (ac._oldVal != ac.Value):
> 247                   return ac.flushValue()
> 248   return True
> 

Done, with this result:

Save of first edited record:

s...@elend:~/bin/haushalt/pflichten_aktuell> ./main.py
ACTIVE CONTROL None
ACTIVE CONTROL <grStammID (baseclass dabo.ui.dGrid, id:-206)>
ACTIVE CONTROL <dDateTextBox1 (baseclass dabo.ui.dDateTextBox, id:-228)>
None
ACTIVE CONTROL <dButton (baseclass dabo.ui.dButton, id:-236)>

Save of second edited record:

ACTIVE CONTROL <grStammID (baseclass dabo.ui.dGrid, id:-206)>
ACTIVE CONTROL <grStammID (baseclass dabo.ui.dGrid, id:-206)>
ACTIVE CONTROL <dDateTextBox1 (baseclass dabo.ui.dDateTextBox, id:-228)>
None
ACTIVE CONTROL <dButton (baseclass dabo.ui.dButton, id:-236)>

Closing application:

ACTIVE CONTROL <dButton2 (baseclass dabo.ui.dButton, id:-238)>
ACTIVE CONTROL <dButton2 (baseclass dabo.ui.dButton, id:-238)>
ACTIVE CONTROL <dButton2 (baseclass dabo.ui.dButton, id:-238)>

Results in the database quite correct.

I got the error with revision 5191, was the problem perhaps already
fixed in 5194?

Thank you,
Sibylle

-- 
Sibylle Koczian

_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/49fef8a1.40...@t-online.de

Reply via email to