On Tue, Sep 15, 2020 at 1:35 PM SS wrote:
>
> On Tuesday, September 15, 2020 at 2:52:35 PM UTC-4, larry.mart...@gmail.com
> wrote:
> > On Tue, Sep 15, 2020 at 11:45 AM SS wrote:
> > >
> > > I'm trying to create an table in html from a Maria DB table, from a
> > > python script. I'm getting
On Tuesday, September 15, 2020 at 2:52:35 PM UTC-4, larry.mart...@gmail.com
wrote:
> On Tue, Sep 15, 2020 at 11:45 AM SS wrote:
> >
> > I'm trying to create an table in html from a Maria DB table, from a python
> > script. I'm getting some unexpected results.
> >
> > The environment is
On 2020-09-15 20:33, SS wrote:
On Tuesday, September 15, 2020 at 2:52:35 PM UTC-4, larry.mart...@gmail.com
wrote:
On Tue, Sep 15, 2020 at 11:45 AM SS wrote:
>
> I'm trying to create an table in html from a Maria DB table, from a python script. I'm getting some unexpected results.
>
> The
On 2020-09-15 19:41, SS wrote:
I'm trying to create an table in html from a Maria DB table, from a python
script. I'm getting some unexpected results.
The environment is Centos 7, I'm using Python3 with apache.
Here is copy of the script I'm using:
*** SCRIPT START *
import
On Tuesday, September 15, 2020 at 2:52:35 PM UTC-4, larry.mart...@gmail.com
wrote:
> On Tue, Sep 15, 2020 at 11:45 AM SS wrote:
> >
> > I'm trying to create an table in html from a Maria DB table, from a python
> > script. I'm getting some unexpected results.
> >
> > The environment is
On Tue, Sep 15, 2020 at 11:45 AM SS wrote:
>
> I'm trying to create an table in html from a Maria DB table, from a python
> script. I'm getting some unexpected results.
>
> The environment is Centos 7, I'm using Python3 with apache.
>
> Here is copy of the script I'm using:
>
> *** SCRIPT
I'm trying to create an table in html from a Maria DB table, from a python
script. I'm getting some unexpected results.
The environment is Centos 7, I'm using Python3 with apache.
Here is copy of the script I'm using:
*** SCRIPT START *
import mysql.connector
import cgitb
On 01/07/2016 08:54 PM, jacob Kruger wrote:
> I would definitely like to try out something like this - I am primarily
> a web developer, and, partly since am 100% blind, any form of GUI design
> is at times an issue for me, whereas I have been working with HTML
> markup layouts for almost 20
create multi platform desktop application by using Python, HTML, CSS and
Javascript.
source code is https://github.com/smoqadam/PyFladesk
you can find RSS Reader app that made by PyFladesk in the following url :
https://github.com/smoqadam/PyFladesk-rss-reader
I'll waiting for your feedback
Ok, double-checked again, and if force it to run under 2.7, then it
complains about lack of pyQT4 - that's one of the issues was asking
about relating to GUI frameworks - pyQT hasn't always worked too well
under 2.7 in terms of accessibility API's in past, but, will 'see' if
can get hold of
no urllib2,
and under 3.4, pip install can't find it either..?
TIA
Jacob Kruger
Blind Biker
Skype: BlindZA
"Roger Wilco wants to welcome you...to the space janitor's closet..."
On 2016-01-08 1:08 AM, Saeed Moqadam wrote:
create multi platform desktop application by using Python,
On Fri, Jan 8, 2016 at 1:54 AM, jacob Kruger wrote:
>
> Also, downloaded both the main master, and the RSS reader master images,
> but, both python 2.7 and python 3.4 tell me that they have no urllib2, and
> under 3.4, pip install can't find it either..?
>
> TIA
>
Python 3
hi,
I enter a calendar in an html page
in each calendar day, I enter a time that is used by the program to perform
actions with python
What can I use to do this?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Well, you need a web server, a webpage, a database (could just be a
file), a cgi script, and the datetime module. Optionally, you can use a
web framework like CherryPy or Django, which covers a lot of these by
itself.
I only know Python 2, but here are some examples:
A basic web server:
On Jul 23, 11:53 am, Paul McGuire pt...@austin.rr.com wrote:
On Jul 22, 5:43 pm, Filip pink...@gmail.com wrote:
# Needs re.IGNORECASE, and can have tag attributes, such as BR
CLEAR=ALL
line_break_re = re.compile('br\/?', re.UNICODE)
Just in case somebody actually uses valid XHTML :-) it
On Jul 23, 3:53 am, Paul McGuire pt...@austin.rr.com wrote:
# You should use raw string literals throughout, as in:
# blah_re = re.compile(r'sljdflsflds')
# (note the leading r before the string literal). raw string
literals
# really help keep your re expressions clean, so that you don't
In article 37da38d2-09a8-4fd2-94b4-5feae9675...@k1g2000yqf.googlegroups.com,
Filip pink...@gmail.com wrote:
I tried to fix that with BeautifulSoup + regexp filtering of some
particular cases I encountered. That was slow and after running my
data scraper for some time a lot of new problems
Hello,
Sometime ago I was searching for a library that would simplify mass
data scraping/extraction from webpages. Python XPath implementation
seemed like the way to go. The problem was that most of the HTML on
the net doesn't conform to XML standards, even the XHTML (those
advertised as valid
On Jul 22, 5:43 pm, Filip pink...@gmail.com wrote:
My library, rather than parsing the whole input into a tree, processes
it like a char stream with regular expressions.
Filip -
In general, parsing HTML with re's is fraught with easily-overlooked
deviations from the norm. But since you have
En Sat, 21 Mar 2009 11:47:36 -0300, S.Selvam Siva s.selvams...@gmail.com
escribió:
I want to upload a file from python to php/html form using urllib2,and my
code is below
See the Python Cookbook: http://code.activestate.com/recipes/langs/python/
--
Gabriel Genellina
--
http
Hi all,
I want to upload a file from python to php/html form using urllib2,and my
code is below
PYTHON CODE:
import urllib
import urllib2,sys,traceback
url='http://localhost/index2.php'
values={}
f=open('addons.xcu','r')
values['datafile']=f.read() #is this correct ?
values['Submit']='True'
data
Hello,
I encounter a display problem in one of my script
...
...
def setValue(divid,data):
elt = document.getElementById(divid)
elt.innerHTML = data
def infoSystem():
setValue(info,Please Wait) #update div info
c = os.popen(cmdDisk%Server).read()
In fact, whatever I do in infoSystem (modifiying style attributes of
an object, change cursor appearance...), changes are only reflected
at the end of the function call ...
Salvatore a écrit :
Hello,
I encounter a display problem in one of my script
...
...
def setValue(divid,data):
Hi!
I give a solution in the french newsgroup.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Does something like that exist?
TIA
--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What
Steven W. Orr wrote:
Does something like that exist?
Many of them, as usual :)
http://wiki.python.org/moin/WebProgramming
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Steven W. Orr a écrit :
Does something like that exist?
http://www.myghty.org/
--
http://mail.python.org/mailman/listinfo/python-list
Forgive my ignorance, but I sometimes write custom dynamic web-pages
using PHP, by simply embedding PHP in HTML with ?php ? tags, and
renaming for example index.html to index.php and making it executable. I
only use this for very minor things like calling a script, and don't
really want to learn
On 9/25/06, Sean Hammond [EMAIL PROTECTED] wrote:
Forgive my ignorance, but I sometimes write custom dynamic web-pages
using PHP, by simply embedding PHP in HTML with ?php ? tags, and
renaming for example index.html to index.php and making it executable. I
only use this for very minor things
Sean Hammond wrote:
Forgive my ignorance, but I sometimes write custom dynamic web-pages
using PHP, by simply embedding PHP in HTML with ?php ? tags, and
renaming for example index.html to index.php and making it executable. I
only use this for very minor things like calling a script, and
Thus spoke [EMAIL PROTECTED] (on 2006-06-23 17:40):
Does anyone know of a way to embed python scripts into html, much like
you would javascript or php? I do not want to use this to connect to a
database, but rather for a functional script to be called when a user
clicks on a link to open
Thus spoke Andy Dingley [EMAIL PROTECTED] (on 2006-06-23 18:10):
[EMAIL PROTECTED] wrote:
Python, like it's (evil?) cousin Perl,
Isn't that evil cousin Ruby? Perl's the mad old grandmother in the
attic, spewing out incomprehensible [EMAIL PROTECTED]% swearing all day.
There's actually a
[EMAIL PROTECTED] wrote:
Does anyone know of a way to embed python scripts into html, much like
you would javascript or php? I do not want to use this to connect to a
database, but rather for a functional script to be called when a user
clicks on a link to open a page.
If you are running Windows
Does anyone know of a way to embed python scripts into html, much like
you would javascript or php? I do not want to use this to connect to a
database, but rather for a functional script to be called when a user
clicks on a link to open a page.
--
http://mail.python.org/mailman/listinfo/python
[EMAIL PROTECTED] wrote:
Does anyone know of a way to embed python scripts into html, much like
you would javascript or php?
I think you'd better learn the profound difference between client-side
and server-side scripting.
I do not want to use this to connect to a
database, but rather
Bruno Desthuilliers wrote:
[EMAIL PROTECTED] wrote:
Does anyone know of a way to embed python scripts into html, much like
you would javascript or php?
I think you'd better learn the profound difference between client-side
and server-side scripting.
Indeed. You really should Google
[EMAIL PROTECTED] wrote:
Python, like it's (evil?) cousin Perl,
Isn't that evil cousin Ruby? Perl's the mad old grandmother in the
attic, spewing out incomprehensible [EMAIL PROTECTED]% swearing all day.
can be used as a CGI. If you
don't have one already, go download Apache server to play
[EMAIL PROTECTED] wrote:
Does anyone know of a way to embed python scripts into html, much like
you would javascript or php?
Two very different things, JS and PHP... First make sure you know what you're
after.
If you want PHP-like embedding of code, google for python server pages.
Several
John Salerno wrote:
Thanks, that makes much more sense to me now. But does this mean I can
still write HTML normally? What would an example be of having HTML
within a Python script? I have a hard time picturing this, because I
imagine that most of my pages will be almost all HTML, with just
bruno at modulix wrote:
John Salerno wrote:
Rene Pijlman wrote:
John Salerno:
[Python alternative for PHP]
So to do this with Python, do I simply integrate it into the HTML as
above, with no extra steps?
You'd need something like the PHP engine, that understands Python rather
than PHP.
Rene Pijlman wrote:
There's also PSP:
http://www.ciobriefings.com/psp/
Another incarnation of PSP can be used as part of Webware for Python
(http://www.w4py.org).
And one of the more modern solutions that should be mentioned is Kid
(http://kid.lesscode.org).
-- Christoph
--
Rene Pijlman wrote:
John Salerno:
[Python alternative for PHP]
So to do this with Python, do I simply integrate it into the HTML as
above, with no extra steps?
You'd need something like the PHP engine, that understands Python rather
than PHP.
[...]
There's also PSP:
John Salerno wrote:
bruno at modulix wrote:
You've got to understand that Python is *not* a 'ServerPage' language
(- php, asp, jsp etc) in itself. Your server can now run python, fine,
but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's probably
just plain old CGI...)
So does
I'm hoping someone can give me the basics for how to do very simple
things with Python scripts from within my HTML. For example, I know that
I can do this in PHP:
h1Here is a header/h1
?php include(file.html); ?// include some external html
pMore html/p
So to do this with Python, do I
Rene Pijlman wrote:
John Salerno:
[Python alternative for PHP]
So to do this with Python, do I simply integrate it into the HTML as
above, with no extra steps?
You'd need something like the PHP engine, that understands Python rather
than PHP.
My web server can run Python, fortunately.
John Salerno wrote:
I'm hoping someone can give me the basics for how to do very simple
things with Python scripts from within my HTML. For example, I know that
I can do this in PHP:
h1Here is a header/h1
?php include(file.html); ?// include some external html
pMore html/p
So to
support for writing
CGI.
Thanks, that makes much more sense to me now. But does this mean I can
still write HTML normally? What would an example be of having HTML
within a Python script? I have a hard time picturing this, because I
imagine that most of my pages will be almost all HTML
signifigant standard library support for writing
CGI.
Thanks, that makes much more sense to me now. But does this mean I can
still write HTML normally? What would an example be of having HTML
within a Python script? I have a hard time picturing this, because I
imagine that most of my pages
In article [EMAIL PROTECTED],
John Salerno [EMAIL PROTECTED] wrote:
bruno at modulix wrote:
You've got to understand that Python is *not* a 'ServerPage' language
(- php, asp, jsp etc) in itself. Your server can now run python, fine,
but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's
John Salerno wrote:
Rene Pijlman wrote:
John Salerno:
[Python alternative for PHP]
So to do this with Python, do I simply integrate it into the HTML as
above, with no extra steps?
You'd need something like the PHP engine, that understands Python rather
than PHP.
My web server can
bruno at modulix wrote:
You've got to understand that Python is *not* a 'ServerPage' language
(- php, asp, jsp etc) in itself. Your server can now run python, fine,
but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's probably
just plain old CGI...)
So does that mean I need to have
John Salerno:
[Python alternative for PHP]
So to do this with Python, do I simply integrate it into the HTML as
above, with no extra steps?
You'd need something like the PHP engine, that understands Python rather
than PHP.
I've used Cheetah:
http://www.cheetahtemplate.org/
Our BDFL seems to
On Tue, 18 Jan 2005 21:50:58 -0800, Dan Bishop wrote:
Dfenestr8 wrote:
Hi.
I've written a cgi messageboard script in python, for an irc chan I
happen
to frequent.
Bear with me, it's hard for me to describe what the bug is. So I've
divided this post into two sections: HOW MY SCRIPTS
On Wed, 19 Jan 2005 04:32:04 -0800, Fuzzyman wrote:
This looks very good.
I've been looking for a python messageboard CGI for a long time.
Thanx!
No glaring security holes that you noticed? Other than being able to hide
things in html tags?
If you wanted to add user accounts/login/admin
Dfenestr8 [EMAIL PROTECTED] writes:
No glaring security holes that you noticed? Other than being able to hide
things in html tags?
Looks like you can also embed arbitrary javascript (I just tried it).
I haven't looked at the script itself yet.
--
On Wed, 19 Jan 2005 12:15:18 -0800, Paul Rubin wrote:
Dfenestr8 [EMAIL PROTECTED] writes:
No glaring security holes that you noticed? Other than being able to
hide things in html tags?
Looks like you can also embed arbitrary javascript (I just tried it). I
haven't looked at the script
Hi.
I've written a cgi messageboard script in python, for an irc chan I happen
to frequent.
Bear with me, it's hard for me to describe what the bug is. So I've
divided this post into two sections: HOW MY SCRIPTS WORKS, and WHAT THE
BUG IS.
HOW MY SCRIPT WORKS
Basically, it's divided into
Dfenestr8 wrote:
Hi.
I've written a cgi messageboard script in python, for an irc chan I
happen
to frequent.
Bear with me, it's hard for me to describe what the bug is. So I've
divided this post into two sections: HOW MY SCRIPTS WORKS, and WHAT
THE
BUG IS.
...
The problem is when
58 matches
Mail list logo