Attachment 'maketestwiki.patch'
Download 1 diff -r 48b95abf3994 MoinMoin/_tests/maketestwiki.py
2 --- a/MoinMoin/_tests/maketestwiki.py Fri Mar 21 15:40:54 2008 +0100
3 +++ b/MoinMoin/_tests/maketestwiki.py Fri Mar 21 18:03:58 2008 +0100
4 @@ -36,9 +36,27 @@ def copyData():
5 def copyData():
6 print 'copying data ...'
7 src = os.path.join(SHARE, 'data')
8 + src_dirs = os.listdir(src)
9 + unwanted_dirs = ['pages', 'user']
10 + unwanted_files = ['edit-log', 'event-log']
11 +
12 + for name in unwanted_dirs + unwanted_files:
13 + src_dirs.remove(name)
14 +
15 dst = os.path.join(WIKI, 'data')
16 - shutil.copytree(src, dst)
17 + for name in src_dirs:
18 + src_name = os.path.join(src, name)
19 + dst_name = os.path.join(dst, name)
20 + if os.path.isdir(src_name):
21 + shutil.copytree(src_name, dst_name)
22 + else:
23 + shutil.copy(src_name, dst_name)
24
25 + for name in unwanted_dirs:
26 + os.mkdir(os.path.join(dst, name))
27 +
28 + for name in unwanted_files:
29 + open(os.path.join(dst, name), 'w').close()
30
31 def untarUnderlay():
32 print 'untaring underlay ...'
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.