Back to index

moin  1.9.0~rc2
Functions | Variables
MoinMoin.version Namespace Reference

Functions

def update

Variables

string patchlevel = 'release'
string project = "MoinMoin"
string release = '1.9.0rc2'
string release_short = '190'
 revision = patchlevel

Function Documentation

update the version information in package init 

Definition at line 22 of file version.py.

00022 
00023 def update():
00024     """ update the version information in package init """
00025     fname = 'MoinMoin/__init__.py'
00026     f = file(fname)
00027     lines = f.readlines()
00028     f.close()
00029     f = file(fname, "w")
00030     version_pattern = "%s Version " % project
00031     version_string = version_pattern + "%s %s" % (release, revision)
00032     for line in lines:
00033         if version_pattern in line:
00034             f.write("%s\n" % version_string)
00035         else:
00036             f.write(line)
00037     f.close()

Here is the caller graph for this function:


Variable Documentation

Definition at line 15 of file version.py.

string MoinMoin.version.project = "MoinMoin"

Definition at line 17 of file version.py.

string MoinMoin.version.release = '1.9.0rc2'

Definition at line 18 of file version.py.

Definition at line 19 of file version.py.

Definition at line 20 of file version.py.