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  
    1717from   sage.misc.viewer     import browser 
    1818from   sage.server.misc import print_open_msg 
    1919 
    20 MOINMOIN_VERSION="1.7.1
     20MOINMOIN_VERSION="1.7.2
    2121 
    2222# if you change the default sage_wiki, you must also change local/bin/sage-wiki 
    2323def wiki_create_instance(directory='sage_wiki'): 
     
    3838    v.write(" ") 
    3939    v.close() 
    4040 
    41 def upgrade_157_to_171(directory, version): 
     41def upgrade_157_to_172(directory, version): 
    4242    #Make a backup 
    4343    backupfile = '%s/backup-%s.tar %s'%(directory,version,directory) 
    4444    print "Making a backup of the wiki at %s"%backupfile  
     
    6565    v.close() 
    6666         
    6767 
    68 UPGRADE_FUNCTIONS = {('1.5.7', '1.7.1'): upgrade_157_to_171
     68UPGRADE_FUNCTIONS = {('1.5.7', '1.7.2'): upgrade_157_to_172
    6969 
    7070def upgrade_if_necessary(directory): 
    7171    #If we're at the latest version, return