--- ../MoinGraphViz-1.0rc4/umoin/MoinLegacy.py	2008-09-21 12:30:16.000000000 +0800
+++ MoinMoin/support/umoin/MoinLegacy.py	2010-10-27 16:45:19.253333324 +0800
@@ -26,7 +26,8 @@
         key = method.__name__
         if not hasattr(target, key): setattr(target, key, method)
 
-    from MoinMoin import wikiutil, request
+    from MoinMoin import wikiutil 
+    from MoinMoin.web import request
 
     for method in (send_title, send_footer):
         install_method(method, wikiutil)
@@ -34,6 +35,8 @@
     req = request.RequestBase
     if not hasattr(req, 'http_headers') and hasattr(req, 'emit_http_headers'):
         req.http_headers = req.emit_http_headers
+    else:
+        req.http_headers = lambda s:()
 
 inject_backward_compatibility()
 
--- ../MoinGraphViz-1.0rc4/wiki/data/plugin/action/MoinAttachmentsDeletion/main.py	2008-11-20 03:57:48.000000000 +0800
+++ wiki/data/plugin/action/MoinAttachmentsDeletion/main.py	2010-10-27 16:52:45.339999989 +0800
@@ -90,8 +90,7 @@
     page = request.page
     folder = page.getPagePath('attachments')
 
-    action = request.form.pop('action')
-    items = request.form.items()
+    items = [i for i in request.form.items() if i[0] != 'action']
 
     messages = []
     ##request.write('<pre>%s</pre>' % items)
