Back to index

moin  1.9.0~rc2
Functions | Variables
MoinMoin.script.old.migration.12_to_13_mig11 Namespace Reference

Functions

def migrate

Variables

string origdir = 'data.pre-mig11'
string destdir = 'data'

Function Documentation

Definition at line 44 of file 12_to_13_mig11.py.

00044 
00045 def migrate(destdir):
00046     plugindir = opj(destdir, 'plugin')
00047     makedir(plugindir)
00048     fname = opj(plugindir, '__init__.py')
00049     f = open(fname, 'w')
00050     f.write('''\
00051 # *** Do not remove this! ***
00052 # Although being empty, the presence of this file is important for plugins
00053 # working correctly.
00054 ''')
00055     f.close()
00056     for d in ['action', 'formatter', 'macro', 'parser', 'processor', 'theme', 'xmlrpc', ]:
00057         thisdir = opj(plugindir, d)
00058         makedir(thisdir)
00059         fname = opj(thisdir, '__init__.py')
00060         f = open(fname, 'w')
00061         f.write('''\
00062 # -*- coding: iso-8859-1 -*-
00063 
00064 from MoinMoin.util import pysupport
00065 
00066 modules = pysupport.getPackageModules(__file__)
00067 ''')
00068         f.close()

Here is the call graph for this function:


Variable Documentation

Definition at line 70 of file 12_to_13_mig11.py.

Definition at line 69 of file 12_to_13_mig11.py.