OSDN Git Service

Print decoded form data.
[fukui-no-namari/fukui-no-namari.git] / src / FukuiNoNamari / submit_window.py
index 3b2985b..b06ea91 100644 (file)
@@ -132,8 +132,10 @@ class WinWrap:
         self.do_submit()
 
     def do_submit(self):
         self.do_submit()
 
     def do_submit(self):
+        for name, value in self.post_dict.iteritems():
+            print "%s: %s" \
+                  % (name, value.decode(self.bbs_type.encoding, "replace"))
         post_encoded = urllib.urlencode(self.post_dict)
         post_encoded = urllib.urlencode(self.post_dict)
-        print post_encoded
 
         req = urllib2.Request(self.bbs_type.get_post_uri(), post_encoded)
         req.add_header("Referer", self.uri)
 
         req = urllib2.Request(self.bbs_type.get_post_uri(), post_encoded)
         req.add_header("Referer", self.uri)