Changeset 3276

Show
Ignore:
Timestamp:
07/25/07 12:43:55 (1 year ago)
Author:
paul
Message:

Explicitly call the form's activeControlValid() when a control gets the focus. I was seeing a case on Windows where changing a value in a textbox and then going to a new page wasn't flushing the textbox's value in time (it eventually happened, though).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/dObject.py

    r3199 r3276  
    8787            classparts.pop() 
    8888        classname = ".".join(classparts) 
     89 
    8990        try: 
    9091            nm = self.Name 
    9192        except AttributeError: 
    9293            nm = "" 
     94 
     95        regid = getattr(self, "RegID", "") 
     96        if regid: 
     97            nm = regid 
     98 
    9399        if (not nm) or (nm == "?"): 
    94100            # No name; use module.classname 
  • trunk/dabo/ui/dControlMixinBase.py

    r3054 r3276  
    1717    def __onGotFocus(self, evt): 
    1818        if self.Form: 
     19            self.Form.activeControlValid()  ## make sure prior control's value has been flushed. 
    1920            self.Form._activeControl = self 
    2021