Changeset 5959
- Timestamp:
- 08/22/2010 01:18:49 PM (1 year ago)
- Files:
-
- trunk/ide/ClassDesigner.py (modified) (8 diffs)
- trunk/ide/ClassDesignerComponents.py (modified) (2 diffs)
- trunk/ide/ClassDesignerEditor.py (modified) (3 diffs)
- trunk/ide/ClassDesignerPropSheet.py (modified) (1 diff)
- trunk/ide/CxnEditor.py (modified) (1 diff)
- trunk/ide/Editor.py (modified) (3 diffs)
- trunk/ide/wizards/AppWizard/AppWizard.py (modified) (1 diff)
- trunk/ide/wizards/AppWizard/spec-main.py.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ide/ClassDesigner.py
r5922 r5959 496 496 497 497 def onEditUndo(self, evt): 498 dabo. infoLog.write(_("Not implemented yet"))498 dabo.log.info(_("Not implemented yet")) 499 499 def onEditRedo(self, evt): 500 dabo. infoLog.write(_("Not implemented yet"))500 dabo.log.info(_("Not implemented yet")) 501 501 502 502 … … 1231 1231 except ValueError: 1232 1232 # Should never happen, so if it does, log it! 1233 dabo. errorLog.write("Invalid wizard page class: %s" % nm)1233 dabo.log.error("Invalid wizard page class: %s" % nm) 1234 1234 dabo.ui.stop("Invalid wizard page class: %s" % nm) 1235 1235 pgDct["fullname"] = nm … … 2245 2245 del self._classPropDict[obj][prop] 2246 2246 except StandardError, e: 2247 dabo. errorLog.write(_("Could not delete custom property '%(prop)s': %(e)s")2247 dabo.log.error(_("Could not delete custom property '%(prop)s': %(e)s") 2248 2248 % locals()) 2249 2249 … … 2480 2480 ret = lps[0] 2481 2481 except: 2482 dabo. errorLog.write(_("Problem adding to a page: no ClassDesigner information."))2482 dabo.log.error(_("Problem adding to a page: no ClassDesigner information.")) 2483 2483 else: 2484 2484 ret = obj.mainPanel … … 2716 2716 if szit is None: 2717 2717 # Something is wrong; write it to the log and return 2718 dabo. errorLog.write(_("Attempted to add an object of class %(cls)s to parent %(pnl)s, but parent has no sizer information.")2718 dabo.log.error(_("Attempted to add an object of class %(cls)s to parent %(pnl)s, but parent has no sizer information.") 2719 2719 % locals()) 2720 2720 return … … 3312 3312 self.setCustomChanges(kid, kidDct) 3313 3313 except StandardError, e: 3314 dabo. errorLog.write(_("Error locating sizer: %s") % e)3314 dabo.log.error(_("Error locating sizer: %s") % e) 3315 3315 else: 3316 3316 if obj.Sizer: … … 3322 3322 self.setCustomChanges(obj.Sizer, szDct) 3323 3323 except StandardError, e: 3324 dabo. errorLog.write(_("Error locating sizer: %s") % e)3324 dabo.log.error(_("Error locating sizer: %s") % e) 3325 3325 else: 3326 3326 if obj.Children: … … 3335 3335 self.setCustomChanges(kid, kidDct) 3336 3336 except StandardError, e: 3337 dabo. errorLog.write(_("Error locating child object: %s") % e)3337 dabo.log.error(_("Error locating child object: %s") % e) 3338 3338 3339 3339 trunk/ide/ClassDesignerComponents.py
r5922 r5959 461 461 sz = self.Sizer 462 462 except AttributeError: 463 dabo. errorLog.write(_("No sizer information available for %s") % self)463 dabo.log.error(_("No sizer information available for %s") % self) 464 464 sz = None 465 465 if sz: … … 1634 1634 """Swaps the location of the two objects.""" 1635 1635 if not obj1 or not obj2: 1636 dabo. errorLog.write(_("Cannot swap with non-existent object."))1636 dabo.log.error(_("Cannot swap with non-existent object.")) 1637 1637 return 1638 1638 row1, col1 = self.getGridPos(obj1) trunk/ide/ClassDesignerEditor.py
r5922 r5959 45 45 if not obj: 46 46 # Should never happen! 47 dabo. ErrorLog.write(_("Bad object ref returned to _makeContainingClassIntoSelf()"))47 dabo.log.error(_("Bad object ref returned to _makeContainingClassIntoSelf()")) 48 48 return None 49 49 try: … … 68 68 except SyntaxError, e: 69 69 # Record the error so that the developer knows there is a problem. 70 dabo. errorLog.write(_("Compilation error found in import code: %s") % e)70 dabo.log.error(_("Compilation error found in import code: %s") % e) 71 71 except ImportError: 72 72 # Ignore because it is not a code problem and will show up on runtime. … … 544 544 keylist.append(obj) 545 545 except: 546 dabo. errorLog.write(_("Could not add to hierarchy: %s") % obj)546 dabo.log.error(_("Could not add to hierarchy: %s") % obj) 547 547 self.ddObject.Choices = chc 548 548 self.ddObject.Keys = keylist trunk/ide/ClassDesignerPropSheet.py
r5835 r5959 727 727 pass 728 728 else: 729 dabo. errorLog.write(_("Property Grid out of sync for property '%s' of object '%'") %729 dabo.log.error(_("Property Grid out of sync for property '%s' of object '%'") % 730 730 (self.getValue(row, 0), self.Application.Selection[0])) 731 731 continue trunk/ide/CxnEditor.py
r5940 r5959 429 429 # Make sure that the passed file exists! 430 430 if not os.path.exists(self.connFile): 431 dabo. errorLog.write("The connection file '%s' does not exist." % self.connFile)431 dabo.log.error("The connection file '%s' does not exist." % self.connFile) 432 432 self.connFile = None 433 433 trunk/ide/Editor.py
r5835 r5959 259 259 pg = pgs[0] 260 260 else: 261 dabo. errorLog.write(_("No matching page for %s") % cap)261 dabo.log.error(_("No matching page for %s") % cap) 262 262 return 263 263 self.SelectedPage = pg … … 554 554 # Eventually, a separate IDE window can optionally display help contents 555 555 # for the object. For now, just print the longdoc to the infolog. 556 dabo. infoLog.write(_("Documentation Hint received:\n\n%s") % evt.EventData["longDoc"])556 dabo.log.info(_("Documentation Hint received:\n\n%s") % evt.EventData["longDoc"]) 557 557 558 558 … … 801 801 except StandardError, e: 802 802 if justReportErrors: 803 dabo. errorLog.write(_("Could not open file: %s") % e)803 dabo.log.error(_("Could not open file: %s") % e) 804 804 target = None 805 805 else: trunk/ide/wizards/AppWizard/AppWizard.py
r5928 r5959 959 959 } 960 960 else: 961 dabo. errorLog.write("No control class found for field '%(fieldName)s'.")961 dabo.log.error("No control class found for field '%(fieldName)s'.") 962 962 lbl.release() 963 963 opList.release() trunk/ide/wizards/AppWizard/spec-main.py.txt
r5835 r5959 25 25 app.biz = biz 26 26 app.ui = ui 27 28 # If we are running frozen, let's reroute the errorLog:29 if hasattr(sys, "frozen"):30 dabo.errorLog.Caption = ""31 dabo.errorLog.LogObject = open(os.path.join(app.HomeDirectory,32 "error.log"), "a")33 27 34 28 # Make it easy to find any images or other files you put in the resources
