1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6e13df4bc3f0/ Changeset: 6e13df4bc3f0 User: carlfeberhard Date: 2013-08-07 18:26:42 Summary: compile_templates.py: add option to save intermediate 'handlebars' files when compiling multiple template files Affected #: 1 file diff -r aa9aeb756031a63f4cd7dc4e1b2d84b12522ffef -r 6e13df4bc3f0e73b69ba510cc626c62145b0a81c static/scripts/templates/compile_templates.py --- a/static/scripts/templates/compile_templates.py +++ b/static/scripts/templates/compile_templates.py @@ -208,13 +208,15 @@ print "\nCall this script with the '-h' for more help" # delete multi template intermediate files - print "\nCleaning up intermediate multi-template template files:" - for filename in multi_template_template_filenames: - try: - print 'removing', filename - os.remove( filename ) - except Exception, exc: - print exc + if options.remove_intermediate: + print "\nCleaning up intermediate multi-template template files:" + for filename in multi_template_template_filenames: + try: + print 'removing', filename + os.remove( filename ) + except Exception, exc: + print exc + # ------------------------------------------------------------------------------ if __name__ == '__main__': @@ -226,7 +228,10 @@ help=( 'indicates that files ending with the given string contain multiple ' + 'templates and the script should break those into individual ' + 'handlebars templates (defaults to "%s")' ) % DEFAULT_MULTI_EXT ) - - ( options, args ) = optparser.parse_args() + optparser.add_option( '--no-remove', action='store_false', dest='remove_intermediate', default=True, + help=( 'remove intermediate *.handlebars files when using multiple template' + + 'files (defaults to "True")' ) ) + + ( options, args ) = optparser.parse_args() sys.exit( main( options, args ) ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.