From: Phil E. <l2...@us...> - 2005-05-12 19:34:19
|
Update of /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18897 Modified Files: changelog.txt standaloneBuilder.py Log Message: Now gives a warning message if you try to release a project with the console and/or debug options switched on. Project build number no longer gets updated if you rebuild a frozen project. Pressing cancel in the run options dialog would run the script anyway... :-( Index: changelog.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/changelog.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** changelog.txt 12 May 2005 08:28:09 -0000 1.7 --- changelog.txt 12 May 2005 19:34:04 -0000 1.8 *************** *** 1,8 **** standaloneBuilder version Version 0.1.1 release date TBA -------------------------------------------------------- - Updated documentation to clarify why and when extra scripts might ! need to be added ! - Adding a script now pops up a dialog asking if you want to add the ! matching resource file if one exists - Updated copyright message and removed innacurate list of Pythoncard developers --- 1,14 ---- standaloneBuilder version Version 0.1.1 release date TBA -------------------------------------------------------- + - Now gives a warning message if you try to release a project with + the console and/or debug options switched on + - Project build number no longer gets updated if you rebuild a + frozen project + - Pressing cancel in the run options dialog would run the script + anyway... :-( - Updated documentation to clarify why and when extra scripts might ! need to be added ! - Adding a script now pops up a dialog asking if you want to add the ! matching resource file if one exists - Updated copyright message and removed innacurate list of Pythoncard developers Index: standaloneBuilder.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/standaloneBuilder.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** standaloneBuilder.py 12 May 2005 08:32:50 -0000 1.11 --- standaloneBuilder.py 12 May 2005 19:34:04 -0000 1.12 *************** *** 445,450 **** self.cmdLineArgs['shell'] = result.shell self.cmdLineArgs['otherargs'] = result.otherargs ! ! self.runScript(False) def on_rebuildBtn_mouseClick(self, event): --- 445,449 ---- self.cmdLineArgs['shell'] = result.shell self.cmdLineArgs['otherargs'] = result.otherargs ! self.runScript(False) def on_rebuildBtn_mouseClick(self, event): *************** *** 530,539 **** self.outputWindow.Raise() ! # increment the build number to finish ! build = self.project.getint('Project', 'build') ! build += 1 ! self.project.set('Project', 'build', str(build)) ! self.documentChanged = True ! self.updateStatusBar() def on_releaseBtn_mouseClick(self, event): --- 529,539 ---- self.outputWindow.Raise() ! # if the project is not frozen, increment the build number to finish ! if self.project.get('Project', 'status') == 'open': ! build = self.project.getint('Project', 'build') ! build += 1 ! self.project.set('Project', 'build', str(build)) ! self.documentChanged = True ! self.updateStatusBar() def on_releaseBtn_mouseClick(self, event): *************** *** 541,544 **** --- 541,552 ---- pstatus = self.project.get('Project', 'status') if pstatus == 'open': + # give a warning message if the debug and/or console options + # are switched on in project properties. + if self.project.getboolean('Project', 'console') or self.project.getboolean('Project', 'debug'): + txt = 'Please note that you currently have either the debug and/or the console option(s)' + txt += ' switched on in the properties for this project.\n\nYou might want to switch these off' + txt += ' prior to releasing the final version of your application' + title = 'Project options warning!' + bull = dialog.alertDialog(self, wrap_string(txt, 70), title) # freeze the project ready for release txt = 'This will freeze the current release so that no more changes can ' |