Attachment 'minimun_graphviz4moin_fix_for_1.9.x.patch'
Download 1 --- ../MoinGraphViz-1.0rc4/umoin/MoinLegacy.py 2008-09-21 12:30:16.000000000 +0800
2 +++ MoinMoin/support/umoin/MoinLegacy.py 2010-10-27 16:45:19.253333324 +0800
3 @@ -26,7 +26,8 @@
4 key = method.__name__
5 if not hasattr(target, key): setattr(target, key, method)
6
7 - from MoinMoin import wikiutil, request
8 + from MoinMoin import wikiutil
9 + from MoinMoin.web import request
10
11 for method in (send_title, send_footer):
12 install_method(method, wikiutil)
13 @@ -34,6 +35,8 @@
14 req = request.RequestBase
15 if not hasattr(req, 'http_headers') and hasattr(req, 'emit_http_headers'):
16 req.http_headers = req.emit_http_headers
17 + else:
18 + req.http_headers = lambda s:()
19
20 inject_backward_compatibility()
21
22 --- ../MoinGraphViz-1.0rc4/wiki/data/plugin/action/MoinAttachmentsDeletion/main.py 2008-11-20 03:57:48.000000000 +0800
23 +++ wiki/data/plugin/action/MoinAttachmentsDeletion/main.py 2010-10-27 16:52:45.339999989 +0800
24 @@ -90,8 +90,7 @@
25 page = request.page
26 folder = page.getPagePath('attachments')
27
28 - action = request.form.pop('action')
29 - items = request.form.items()
30 + items = [i for i in request.form.items() if i[0] != 'action']
31
32 messages = []
33 ##request.write('<pre>%s</pre>' % items)
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.