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
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"
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
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
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
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
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
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
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
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
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
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
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
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"
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
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:
>>
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
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
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
19 matches
Mail list logo