From: Michael bridges micha_el2...@yahoo.com
To: ALAN GAULD alan.ga...@btinternet.com
Sent: Thursday, 16 June, 2011 1:07:14
Subject: Re: [Tutor] using python to write web page
your python code includes html.
OK, Now I understand.
i write the python only code
Have a look at the Pyjamas project: http://pyjs.org/ It sounds like what
you want.
Walter
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Walter Prins wpr...@gmail.com wrote
Have a look at the Pyjamas project: http://pyjs.org/ It sounds like
what
you want.
I hadn't considered using pyjamas outside a web server environment
but I guess you could since it just creates an html/javascript file.
It
depends on what the OP wants to
i would like to use python to write a web page like writing an html file that
is displayed in a browser without having to run a server.
found a few options, but need to have server running.
https://skulpt.googlecode.com/hg/skulpt
gives 404 error
Or maybe, you're lokking something like this:
http://wiki.python.org/moin/PythonEditors
On Wed, June 15, 2011 13:42, Michael bridges wrote:
i would like to use python to
write a web page like writing an html file that is displayed in
a browser without having
to run a server.
found a few
cherrypy is what you are looking for
check this site: http://www.chandia.net:8080/
you cn
download the code from here, so you can use it as you want:
NMT-2.6-20110529.tar_.gz
On Wed, June 15, 2011 13:42, Michael bridges wrote:
i would like to
use python to write a web page like writing an
From: Michael bridges micha_el2...@yahoo.com
To: Alan Gauld alan.ga...@btinternet.com
Sent: Thursday, 16 June, 2011 0:43:35
Subject: Re: [Tutor] using python to write web page
i do not want to write html, not in whole or in part, nor in reference.
just 100% python. not from a server
Got a question in this context. If i would like to edit an html file.
suppose i want to edit the values of href tags or the img tags, what should
i do?
should I
1. read the file as string,
2.parse it for the tags,
3.edit the tags
4.and then replace the tags by the editted tags
5.delete the main
naheed arafat wrote:
Got a question in this context. If i would like to edit an html file.
suppose i want to edit the values of href tags or the img tags, what should
i do?
This question is more general than just editing HTML files. The same
question, and answer, applies to editing *any* file
On Wed, Jun 15, 2011 at 8:46 PM, naheed arafat naheed...@gmail.com wrote:
Or there is any python module to get this job done?
The normal way this sort of thing is handled is that the HTML is in
some form of template, where the tags you are talking about editing
are variables. A common example
10 matches
Mail list logo