~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/script/migration/1050300.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
    We add a filter plugin dir here.
6
6
 
7
 
    @copyright: 2006 by Thomas Waldmann
 
7
    @copyright: 2006 MoinMoin:ThomasWaldmann
8
8
    @license: GNU GPL, see COPYING for details.
9
9
"""
10
10
from MoinMoin.script.migration.migutil import opj, listdir, copy_file, move_file, copy_dir, makedir
16
16
        makedir(thisdir)
17
17
        fname = opj(thisdir, '__init__.py')
18
18
        f = open(fname, 'w')
19
 
        f.write('''\
 
19
        f.write("""\
20
20
# -*- coding: iso-8859-1 -*-
21
21
 
22
22
from MoinMoin.util import pysupport
23
23
 
24
24
modules = pysupport.getPackageModules(__file__)
25
 
''')
 
25
""")
26
26
        f.close()
27
 
    return 1050301
 
27
    return rev + 1
28
28