Re: [Tutor] mod_python authentication

2009-12-07 Thread aivars
Alan, I am very impressed! This one goes to my knowledge base. Thanks a lot. 2009/12/7 Alan Plum : > On Mo, 2009-12-07 at 09:35 -0400, Rayon wrote: >> How do I Check for an active login session on every page that requires >> authentication >> >> Been at this for days and it’s holding me back can s

Re: [Tutor] Tutor Digest, Vol 70, Issue 5

2009-12-02 Thread aivars
from InformIT's website. Here's the direct link: >>> >>> http://ptgmedia.pearsoncmg.com/imprint_downloads/informit/promotions/python/python2python3.pdf >> >> >> It didn't work for me I always got forwarded to the Book "home page"

Re: [Tutor] sqlite3 Python25 parameter binding problem withUPDATEplease help

2008-12-02 Thread aivars
nd I will try not to bother people on this list too often. Or If I do please feel free tell me to [EMAIL PROTECTED] off and do some more reading! Again, thank you Alan for the help! Aivars 2008/12/3 Alan Gauld <[EMAIL PROTECTED]>: > "aivars" <[EMAIL PROTECTED]> w

Re: [Tutor] sqlite3 Python25 parameter binding problem with UPDATEplease help

2008-12-02 Thread aivars
Thanks in advance Aivars 2008/12/2 aivars <[EMAIL PROTECTED]>: > Interestingly, when simply testing like this: > > import sqlite3, sys > sPATH=r'e:\pythonexamples\aivars2.db' > oCon=sqlite3.connect(sPATH) > > cur=oCon.cursor() > > oCon.e

Re: [Tutor] sqlite3 Python25 parameter binding problem with UPDATEplease help

2008-12-02 Thread aivars
commit() it works. Therefore I am stuck since it looks like there is something wrong in below function. Thanks, Aivars 2008/12/2 aivars <[EMAIL PROTECTED]>: > Alan, > Thanks. > > Ok I should have been more precise and give more code > There is what I do: > > def starpib

[Tutor] sqlite3 Python25 parameter binding problem with UPDATE please help

2008-12-01 Thread aivars
1 probably unsupported type All works OK when using INSERT with the same parameters. On Google I found that python with MySQL supports this syntax (sorry I am not able to find the link now) but I am not able to get it working with sqlite3 Thanks in advance Maybe I should as this question on sqlite lis

Re: [Tutor] please help with sqlite replace function

2008-11-07 Thread aivars
Hello, Denis, Please try what sqlite3.version shows on your machine? Thanks aivars 2008/11/7 spir <[EMAIL PROTECTED]>: > aivars a écrit : >> >> Thanks, John, >> Yes it seems you are right. The ActiveState python version I have >> installed have sqlite 2.3.2 on

Re: [Tutor] problem with simple sqlite script

2008-11-07 Thread aivars
Kent, Yesss!! That did the trick! It's worth to remeber. Thank you very much! Aivars 2008/11/7 Kent Johnson <[EMAIL PROTECTED]>: > On Fri, Nov 7, 2008 at 3:49 AM, aivars <[EMAIL PROTECTED]> wrote: > >> import sqlite3 >> >> sPath=r'e:\pythonexampl

Re: [Tutor] problem with simple sqlite script

2008-11-07 Thread aivars
Thanks, Alan, here is a create statement: CREATE TABLE "test" ("name" TEXT) And also I would like to thank you for you web page. Classes and OOP seems to start to make sense to me now slowly after I am reading your material. Aivars 2008/11/7 Alan Gauld <[EMAIL P

[Tutor] problem with simple sqlite script

2008-11-07 Thread aivars
used the syntax with (?) successfully before! I tested and found out that above script allows me to insert only single character into database. Then it works. Using ActiveState python 2.5, WinXP Thanks for any hint. Aivars ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] please help with sqlite replace function

2008-11-06 Thread aivars
2) >>> sqlite3.sqlite_version '3.6.2' and now my scrip happily runs with sqlite replace function. I am just curious why there are so many different version properties and why now they differ from sqlite3.version? Of course it seems Python now is running sqlite version 3.6.2

Re: [Tutor] please help with sqlite replace function

2008-11-06 Thread aivars
I also do not understand why Re user defined function - it is one of the ways to go probably quickest but I would like to have newer version of sqlite being already with python I am noob in Python still Thanks for your input Aivars 2008/11/6 John Fouhy <[EMAIL PROTECTED]>: > 2008/11

[Tutor] please help with sqlite replace function

2008-11-06 Thread aivars
I use python 2.5.2.2 (activestate), WinXP, sqlite version 3.6.2 Thanks for any tip. maybe I should ask this to sqlite mailing list? Aivars ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] please help with simple python CGI script

2008-10-26 Thread aivars
Hello, Lie, I renamed the directory back to Cgi-bin and the scripts are NOT working. Going back to cgi-bin it works. I also do not understand why. Aivars 2008/10/26 Lie Ryan <[EMAIL PROTECTED]>: > On Sun, 26 Oct 2008 08:32:52 +, Alan Gauld wrote: > >> "aivars"

Re: [Tutor] please help with simple python CGI script

2008-10-26 Thread aivars
I finally get the script working! I renamed the script directory from Cgi-bin to cgi-bin just as Alan told. Many thanks to all you who responded Aivars 2008/10/26 aivars <[EMAIL PROTECTED]>: > Thanks John and Alan > > I get the following error when I run the script from IDLE

Re: [Tutor] please help with simple python CGI script

2008-10-25 Thread aivars
eyError, key KeyError: 'person' Aivars Windows XP, python 2.5 2008/10/26 John Pomni <[EMAIL PROTECTED]>: > what error do you get? It works without any changes on my Linux machine > with python 2.5 > > John > > On Sat, 2008-10-25 at 21:33 +0300, aivars wrote: >>

Re: [Tutor] please help with simple python CGI script

2008-10-25 Thread aivars
I like cgitb modules for debugging purposes very much. > > http://www.python.org/doc/2.5.2/lib/node566.html > > Jan > > On Fri, 2008-10-24 at 18:55 +0300, aivars wrote: >> Thanks very much, Kent, >> >> So it seems that directory /cgi-bin should be a subdirectory t

Re: [Tutor] please help with simple python CGI script

2008-10-24 Thread aivars
or, key KeyError: 'person' I understand python is saying that there is no such a key in a directory. The HTML form looks like this. it is displayed correctly both in FF and IE Friends CGI Demo (static screen) Friends list for: NEW USER Enter your Name: How many friends

[Tutor] please help with simple python CGI script

2008-10-24 Thread aivars
ript itself runs OK if being run from python/command line I also could not run the script from wesley chun's book. I think also because it seems the python cgi web server does not understand that it should run the script and not to print it out in web brow