I’m trying to write a Plugin for Trac.
I’ve succeeded to export variables contents from my request (process_request)
to my template …but I still having problems doing it in the other way : how to catch the information taped by the user ?
<form name="input" action="" method="POST">
Configuration : <input type="text" name="configuration" value ="$my_var" /> <br /><br />
<label for="file">URL:</label>
<input type="text" name="file" id="WillPosted" value="This text will be changed by the user"/>
<input type="submit" name="SubmiT" value="Browse" /><br /><br />
So how can I catch the content of the input form with the id=”WillPosted” ?
Notice : actual problem is in IRequestHandler methods from Trac !
Any Idea ?
Thanks
You’re asking about the common web-UI interaction
How to get (changed) new value of input, right? If so, you explained it rather complicated.
And I’m wondering, if you don’t know about trac-hacks.org, probably the most authoritative source of Trac plugin code on the planet – much more working examples to look at than needed here.
Anyway, the key is reading the return value(s) from
reg.argsdict like so:Questions on using various Trac extension point interfaces? See the authoritative wiki documentation on the subject as well!