Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46466 > unrolled thread

Python toplevel in a Web page

Started byFranck Ditter <nobody@nowhere.org>
First post2013-05-30 14:20 +0200
Last post2013-06-01 14:43 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Python toplevel in a Web page Franck Ditter <nobody@nowhere.org> - 2013-05-30 14:20 +0200
    RE: Python toplevel in a Web page Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-31 00:40 +0300
    Re: Python toplevel in a Web page Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-01 14:43 +0000

#46466 — Python toplevel in a Web page

FromFranck Ditter <nobody@nowhere.org>
Date2013-05-30 14:20 +0200
SubjectPython toplevel in a Web page
Message-ID<nobody-F6A3A1.14201830052013@news.free.fr>
Hello,
I wonder if I can find some source code example
of a Python 3 toplevel box in a Web page.
Something simple, no mySQL, no Django hammer, etc.
Just the basics of the technology to get the
content of a small text editor in which the user
writes some Python script, to be analyzed (eval'ed)
then whose result is to be written in another text box.
Simple, pythonistic.
Thanks for the pointer,

    franck

[toc] | [next] | [standalone]


#46545

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-05-31 00:40 +0300
Message-ID<mailman.2454.1369950067.3114.python-list@python.org>
In reply to#46466
----------------------------------------
> From: nobody@nowhere.org
> Subject: Python toplevel in a Web page
> Date: Thu, 30 May 2013 14:20:18 +0200
> To: python-list@python.org
>
> Hello,
> I wonder if I can find some source code example
> of a Python 3 toplevel box in a Web page.
> Something simple, no mySQL, no Django hammer, etc.
> Just the basics of the technology to get the
> content of a small text editor in which the user

Do you mean HTML <textarea> element?

> writes some Python script, to be analyzed (eval'ed)
> then whose result is to be written in another text box.

Analyzed by the browser or server side?

> Simple, pythonistic.
> Thanks for the pointer,
>
> franck
> --
> http://mail.python.org/mailman/listinfo/python-list 		 	   		  

[toc] | [prev] | [next] | [standalone]


#46663

FromGiorgos Tzampanakis <giorgos.tzampanakis@gmail.com>
Date2013-06-01 14:43 +0000
Message-ID<slrnkqk2c6.33c.giorgos.tzampanakis@brilliance.eternal-september.org>
In reply to#46466
On 2013-05-30, Franck Ditter wrote:

> Hello,
> I wonder if I can find some source code example
> of a Python 3 toplevel box in a Web page.
> Something simple, no mySQL, no Django hammer, etc.
> Just the basics of the technology to get the
> content of a small text editor in which the user
> writes some Python script, to be analyzed (eval'ed)
> then whose result is to be written in another text box.
> Simple, pythonistic.
> Thanks for the pointer,
>
>     franck

Just set up a webpage with a text area that sends its content as a POST
request to the server where a cgi script will invoke python to run the
script and respond with the output.

Do you trust all possible users of this application? If not, you should
make sure that the python interpreter is running in a sandbox.

-- 
Real (i.e. statistical) tennis and snooker player rankings and ratings:
http://www.statsfair.com/ 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web