Ticket #3693: trac_3693-part3.patch
| File trac_3693-part3.patch, 1.2 kB (added by mhansen, 3 months ago) |
|---|
-
a/sage/server/wiki/moin.py
old new 17 17 from sage.misc.viewer import browser 18 18 from sage.server.misc import print_open_msg 19 19 20 MOINMOIN_VERSION="1.7. 1"20 MOINMOIN_VERSION="1.7.2" 21 21 22 22 # if you change the default sage_wiki, you must also change local/bin/sage-wiki 23 23 def wiki_create_instance(directory='sage_wiki'): … … 38 38 v.write(" ") 39 39 v.close() 40 40 41 def upgrade_157_to_17 1(directory, version):41 def upgrade_157_to_172(directory, version): 42 42 #Make a backup 43 43 backupfile = '%s/backup-%s.tar %s'%(directory,version,directory) 44 44 print "Making a backup of the wiki at %s"%backupfile … … 65 65 v.close() 66 66 67 67 68 UPGRADE_FUNCTIONS = {('1.5.7', '1.7. 1'): upgrade_157_to_171}68 UPGRADE_FUNCTIONS = {('1.5.7', '1.7.2'): upgrade_157_to_172} 69 69 70 70 def upgrade_if_necessary(directory): 71 71 #If we're at the latest version, return