On Thu, Dec 10, 2009 at 1:20 AM, prabhakar <[email protected]> wrote:
> Hi,

:o)

> Here i mentioned my code below,
>
> Js File:
> ---------------------------
>
> var xmlhttp;
> function showHint()
> {
> var str=document.getElementById("myname").value;
> if (str!=''){
>        xmlhttp=GetXmlHttpObject();
>        var url="http://localhost:5656/psltrac_internal/admin/general/
> basics/";

This URL (since it's under /admin) should require you to have
TRAC_ADMIN permission . Try to monitor the requests with Firebug and
probably you'll find some `Access denied` HTTP errors

>
> Python Files
> -----------------------
> if req.method == 'GET':
>            if str(req.args.get("q"))!='' and str(req.args.get("q"))!
> ='None':
>                 print "hello"
>
> Here in python file i tried to send the responseText as
> print
> return
> and req.send_header() all the methods failed to return responseText.
>

If you are using Trac request objects then you need to write a request
handler (i.e. implement IRequestHandler interface ;o). If you are
using print statement then you should run it as a CGI script outside
Trac address space

;o)

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Depurando errores en aplicaciones web CGI con Python  -
http://feedproxy.google.com/~r/simelo-es/~3/xxyDHHH1YZ8/depurando-errores-en-aplicaciones-web.html

--

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.


Reply via email to