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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# -*- coding: iso-8859-1 -*-
3
 
"""
4
 
    MoinMoin - 1st pass of 1.6a to 1.6 migration
5
 
 
6
 
    Note: this is a special hack for some users of a early 1.6 alpha version,
7
 
          this code is skipped and NOT executed in a normal release-to-release
8
 
          migration (like when going from 1.5.x release to 1.6.0 release).
9
 
 
10
 
          If you run this early 1.6alpha code (with different link markup than
11
 
          1.5.x AND 1.6.x release has), you need to manually put 1059997 into
12
 
          your data/meta file to have this special code executed.
13
 
 
14
 
    @copyright: 2008 by Thomas Waldmann
15
 
    @license: GNU GPL, see COPYING for details.
16
 
"""
17
 
 
18
 
from _conv160a import DataConverter
19
 
 
20
 
def execute(script, data_dir, rev):
21
 
    # the first pass just creates <data_dir>/rename1.txt
22
 
    dc = DataConverter(script.request, data_dir, None)
23
 
    dc.pass1()
24
 
    return 1059998
25