dabo Commit
Revision 4377
Date: 2008-08-07 13:35:05 -0700 (Thu, 07 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4377

Changed:
U   trunk/dabo/ui/uiwx/dEditor.py

Log:
Added the option of overwriting the checkChangesAndContinue check in the 
openFile method.  Backwards compatible.

Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py       2008-08-07 19:28:54 UTC (rev 4376)
+++ trunk/dabo/ui/uiwx/dEditor.py       2008-08-07 20:35:05 UTC (rev 4377)
@@ -1519,9 +1519,12 @@
                        return False
        
        
-       def openFile(self, fileSpec=None):
+       def openFile(self, fileSpec=None, checkChanges=True):
                """Open a new file and edit it."""
-               if self.checkChangesAndContinue():
+               cc = True
+               if checkChanges:
+                       cc = self.checkChangesAndContinue()
+               if cc:
                        if fileSpec is None:
                                fileSpec = self.promptForFileName("Open")
                                if fileSpec is None:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to