Back to index

moin  1.9.0~rc2
Functions
MoinMoin.script.migration.1069999 Namespace Reference

Functions

def execute

Function Documentation

def MoinMoin.script.migration.1069999.execute (   script,
  data_dir,
  rev 
)

Definition at line 12 of file 1069999.py.

00012 
00013 def execute(script, data_dir, rev):
00014     plugindir = opj(data_dir, 'plugin')
00015     for d in ['userprefs', ]:
00016         thisdir = opj(plugindir, d)
00017         makedir(thisdir)
00018         fname = opj(thisdir, '__init__.py')
00019         f = open(fname, 'w')
00020         f.write("""\
00021 # -*- coding: iso-8859-1 -*-
00022 
00023 from MoinMoin.util import pysupport
00024 
00025 modules = pysupport.getPackageModules(__file__)
00026 """)
00027         f.close()
00028     return rev + 1
00029 

Here is the call graph for this function: