Many thanks Simon, very cool explanation, I'm grateful for your neat support. 
I'll look for that in google and OpenLayers, about to execute the python script 
and Apache, I think it has something to do with modwsgi but not sure. If you 
could point me to some useful links for any of the ways (perahps the easiest 
one) of doing this, I'd be really grateful, but you already helped me a lot, 
thanks man.

Cheers,

Gery


> 
> Hi Gery,
> 
> At the moment, your javascript code (running in your web browser) is
> making an HTTP request to Apache. Apache is simply returning the
> contents of the requested file, so your javascript is receiving a
> string of Python code that it has no way of interpreting. I'm afraid
> this will never work.
> 
> What you need is for Apache to *execute* the python script and return
> the contents to your browser. There are lots of ways of doing this,
> but you'll really need to at least have a basic understanding of web
> technologies. You will have to understand how OpenLayers requests data
> from the server, know how to extract query parameters from the
> request, turn those into a database query, format the results as JSON
> and return them back to the browser. I'm afraid all of those things
> are outside the scope of this list.
> 
> Sorry I can't be more help,
> 
> Simon
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" 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/sqlalchemy?hl=en.
> 
                                          

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en.

Reply via email to