Opened 14 years ago
Closed 14 years ago
#7168 closed defect (fixed)
WikiForms getting error with Trac 0.12b1
Reported by: | Owned by: | asic_druide | |
---|---|---|---|
Priority: | high | Component: | WikiFormsPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
I think I've implemented WikiForms correctly. I had TracForms installed and working when I found WikiForms. I've reimplemented using WikiForms but I'm getting an error in the ticket when I try to mark completed.
Here is my wiki form code:
I saved this off as a wiki page. I then included this page in a ticket using
.
The wiki form shows up correctly, but when I hit the completed button I get:
Trac detected an internal error:
AssertionError: Response already started
It does update the ticket when I exit and go back in. My check boxes are marked and values now show up. I'm just getting this error.
Attachments (0)
Change History (3)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
I found the issue. It also happened with TracForms and I had fixed it there. Trac 0.12 requires the Content-Length headers. The change I made to wikiforms.py is:
201a202
req.send_header('Content-Length', 2)
206a208
req.send_header('Content-Length', 2)
211a214
req.send_header('Content-Length', len(str(e)))
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
fixed in r8022
Thanks David for the patch.
Sorry, forgot to mark out the code so that the wiki doesn't process it.