On Jul 2, 2:50 pm, Álvaro J. Iradier <[email protected]>
wrote:
> We are working in some special macros that show a form in the wiki and
> do some processing, but we have to use GET method for those macro
> forms, as using GET results in the request not being processed by the
> Wiki module, so the macro is not run, and an error being thrown
> (Response not started when writing headers).
>
> Would it do any harm just to unindent line number 166, so if method is
> POST, but action is unespecified, fallback to default processing?

As the Zen of Python says, "In the face of ambiguity, refuse the
temptation to guess." There is no 'default' action, and we don't know
if your POST arguments contains what Trac would need to do.

There is a plugin at Trac-Hacks.org that "arranges" POST support for
macros - it is currently used by AddCommentMacro for instance (as a
plugin requirement):

http://trac-hacks.org/wiki/MacroPostPlugin


:::simon

https://www.coderesort.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to