Hi, It seems that my question was too stupid to be answered. Well that might be true because I am just getting into web apps and dont know much about many things in this field.
The trac we are using needs to have autocomplete on different fields in the ticket forms. the autocompleteusers plugin helps do autocomplete only for few fields, also it only autocompletes user emails etc. However, if I wish to autocomplete some other field with some data from another table in the trac.db, I need to be able to figure this execution path in the process_request() method of IRequestHandler... right. One way to figure this out is to make a separate component for each of the types of autocompletes. Another way i was thinking was to have some information in the request object 'req', that can help decide what to search for autocompletion (user email, or inventory numbers or product names etc). So I want to find out how can the req object be configured to send the element id name of the field from which this ajax request is launched? Thanks and best regards, Vishal Sapre On Mon, Mar 8, 2010 at 6:51 PM, Olemis Lang <[email protected]> wrote: > On Mon, Mar 8, 2010 at 6:02 AM, Vishal <[email protected]> wrote: > > Hello, > > > > I am trying to understand how match_request() works. > > > [...] > > > > can some one explain how exactly match_request and process_request is > > used? > > > > call `match_request` of installed handlers and call `process_request` > for the first one returning True > > > Also, is the req object configurable? > > What does this mean ? > > > Can i send across the id name of > > the element from which this ajax request is being sent. I wish to > > perform different actions on requests coming from different HTML > > elements. > > > > Use req.path_info to perform the match and req.args to access the arguments > > -- > Regards, > > Olemis. > > Blog ES: http://simelo-es.blogspot.com/ > Blog EN: http://simelo-en.blogspot.com/ > > Featured article: > On adding Hessian (RPC) support for Trac - > > http://feedproxy.google.com/~r/simelo-en/~3/Vit6dRudChU/on-adding-hessian-rpc-support-for-trac.html > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressureā "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." -- You received this message because you are subscribed to the Google Groups "Trac Users" 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-users?hl=en.
