Re: python mariadb & html tables

2020-09-15 Thread Larry Martell
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

Re: python mariadb & html tables

2020-09-15 Thread SS
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

Re: python mariadb & html tables

2020-09-15 Thread MRAB
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

Re: python mariadb & html tables

2020-09-15 Thread MRAB
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

Re: python mariadb & html tables

2020-09-15 Thread SS
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

Re: python mariadb & html tables

2020-09-15 Thread Larry Martell
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

python mariadb & html tables

2020-09-15 Thread SS
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

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-08 Thread Michael Torrie
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

PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread Saeed Moqadam
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

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
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

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
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,

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread Bernardo Sulzbach
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

calendar from python to html

2012-10-05 Thread Luca Sanna
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

Re: calendar from python to html

2012-10-05 Thread Jason Benjamin
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:

Re: python fast HTML data extraction library

2009-07-26 Thread John Machin
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

Re: python fast HTML data extraction library

2009-07-26 Thread Filip
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

Re: python fast HTML data extraction library

2009-07-25 Thread Aahz
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

python fast HTML data extraction library

2009-07-22 Thread Filip
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

Re: python fast HTML data extraction library

2009-07-22 Thread Paul McGuire
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

Re: python php/html file upload issue

2009-03-22 Thread Gabriel Genellina
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

python php/html file upload issue

2009-03-21 Thread S.Selvam Siva
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

Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
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()

Re: Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
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):

Re: Python in HTML Application (HTA)

2007-10-13 Thread M�ta-MCI (MVP)
Hi! I give a solution in the french newsgroup. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Looking to embed python into html like mason

2007-06-21 Thread Steven W. Orr
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

Re: Looking to embed python into html like mason

2007-06-21 Thread Stefan Behnel
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

Re: Looking to embed python into html like mason

2007-06-21 Thread Bruno Desthuilliers
Steven W. Orr a écrit : Does something like that exist? http://www.myghty.org/ -- http://mail.python.org/mailman/listinfo/python-list

Embed Python in HTML?

2006-09-25 Thread Sean Hammond
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

Re: Embed Python in HTML?

2006-09-25 Thread Ramon Diaz-Uriarte
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

Re: Embed Python in HTML?

2006-09-25 Thread Fredrik Lundh
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

Re: Python in HTML

2006-06-25 Thread Mirco Wahab
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

What is that, swearing (was: Python in HTML)

2006-06-25 Thread Mirco Wahab
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

Re: Python in HTML

2006-06-25 Thread Tim Roberts
[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

Python in HTML

2006-06-23 Thread brochu121
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

Re: Python in HTML

2006-06-23 Thread Bruno Desthuilliers
[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

Re: Python in HTML

2006-06-23 Thread [EMAIL PROTECTED]
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

Re: Python in HTML

2006-06-23 Thread Andy Dingley [EMAIL PROTECTED]
[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

Re: Python in HTML

2006-06-23 Thread Mitja Trampus
[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

Re: embedding python in HTML

2006-02-22 Thread Magnus Lycka
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

Re: embedding python in HTML

2006-02-18 Thread Steve Holden
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.

Re: embedding python in HTML

2006-02-18 Thread Christoph Zwerschke
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 --

Re: embedding python in HTML

2006-02-17 Thread Paul Boddie
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:

Re: embedding python in HTML

2006-02-17 Thread Kirk McDonald
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

embedding python in HTML

2006-02-17 Thread John Salerno
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

Re: embedding python in HTML

2006-02-17 Thread John Salerno
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.

Re: embedding python in HTML

2006-02-17 Thread John Salerno
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

Re: embedding python in HTML

2006-02-17 Thread John Salerno
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

Re: embedding python in HTML

2006-02-17 Thread Georg Brandl
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

Re: embedding python in HTML

2006-02-17 Thread Cameron Laird
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

Re: embedding python in HTML

2006-02-16 Thread bruno at modulix
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

Re: embedding python in HTML

2006-02-16 Thread John Salerno
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

Re: embedding python in HTML

2006-02-16 Thread Rene Pijlman
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

Re: python/cgi/html bug

2005-01-19 Thread Dfenestr8
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

Re: python/cgi/html bug

2005-01-19 Thread Dfenestr8
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

Re: python/cgi/html bug

2005-01-19 Thread Paul Rubin
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. --

Re: python/cgi/html bug

2005-01-19 Thread Dfenestr8
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

python/cgi/html bug

2005-01-18 Thread Dfenestr8
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

Re: python/cgi/html bug

2005-01-18 Thread Dan Bishop
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