Re: [Tutor] mod_python authentication

2009-12-08 Thread Alan Plum
On Mo, 2009-12-07 at 23:10 -0500, Marc wrote: > While I agree with the cookie (as long as it has a short expiration), > another way to do this is by using expiring tokenization (credentials+ some > unique data for the transaction) in the URL header (see section 14.8 at > http://www.w3.org/Protocol

Re: [Tutor] mod_python authentication

2009-12-07 Thread Marc
> 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 > > > To understand sessions you first need to understand that HTTP is a > stateless protocol: you connect, send your request, receive a response > and th

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] mod_python authentication

2009-12-07 Thread 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 someone plz help > me with some code examples. To understand sessions you first need to understand that

[Tutor] mod_python authentication

2009-12-07 Thread Rayon
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 someone plz help me with some code examples. ___ Tutor maillist - Tutor@python.org To unsubscribe or change s

[Tutor] mod_python authentication

2009-12-06 Thread Rayon
how to check whether a user is authenticated with mod_python ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] mod_python authentication

2009-12-05 Thread Rayon
I need to setup a login page for a web application but I am not finding any code in the mod_python doc that shows me how to do this. What is need is the code to tell apache to get this login data from a login page. OTOH if you want to build your own login system (e.g. with user details stor

Re: [Tutor] mod_python authentication

2009-12-05 Thread Benno Lang
On Sat, Dec 5, 2009 at 8:26 PM, Rayon wrote: > I need to  setup a login page for a web application but I am not finding any > code in the mod_python doc that shows me how to do this. > > What is need is the code to tell apache to get this login data from a login > page. If you want Apache to dire

[Tutor] mod_python authentication

2009-12-05 Thread Rayon
I need to setup a login page for a web application but I am not finding any code in the mod_python doc that shows me how to do this. What is need is the code to tell apache to get this login data from a login page. ___ Tutor maillist - Tutor@pyt

Re: [Tutor] mod_python

2008-11-28 Thread Alan Gauld
"Jason DeBord" <[EMAIL PROTECTED]> wrote in using Python instead of PHP and would like to use Python's template style as well as a framework such as Pylons or Django. I can't speak for those two but ISTR that TurboGears had a fairly comprehensive set of notes on how to configure with lots of

Re: [Tutor] mod_python

2008-11-28 Thread Rich Lovely
Wsgi is also more portable than mod_python: mod_python is solely available on the Apache httpd, whereas wsgi is available on many more. --- Richard "Roadie Rich" Lovely Part of the JNP|UK Famille www.theJNP.com (Sent from my iPod - please allow me a few typos: it's a very small keyboard) O

Re: [Tutor] mod_python

2008-11-28 Thread Serdar Tumgoren
mod_wsgi is another option that supposedly has a smaller memory footprint and, in my case, proved easier to configure than mod_python http://code.google.com/p/modwsgi/ http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi ___ Tutor maillist -

[Tutor] mod_python

2008-11-28 Thread Jason DeBord
Is mod_python the only way to integrate python and apache2 ? I am interested in using Python instead of PHP and would like to use Python's template style as well as a framework such as Pylons or Django. Thanks in advance! -- - - - - - - - - - - - - - Jason Limoges, France ___

Re: [Tutor] mod_python, mod_wsgi, web.py, django! What to use?

2008-09-29 Thread Marc Tompkins
On Mon, Sep 29, 2008 at 2:55 AM, Alan Gauld <[EMAIL PROTECTED]>wrote: > The biggest limitation by far on Python web development is lack > of Python support on the web servers. You need to find a provider that > either gives you an account on a server with which you can install any > frameworks you

Re: [Tutor] mod_python, mod_wsgi, web.py, django! What to use?

2008-09-29 Thread Alan Gauld
"Alec Henriksen" <[EMAIL PROTECTED]> wrote So, lets say I want to develop a distributable web application (such as phpBB or Drupal) for Python. What platform (mod_wsgi, mod_python) would I use to reach as many users as possible, and on top of that, which (if any) framework should I use to de

Re: [Tutor] mod_python, mod_wsgi, web.py, django! What to use?

2008-09-28 Thread Chris Babcock
> So, lets say I want to develop a distributable web application (such > as phpBB or Drupal) for Python. What platform (mod_wsgi, mod_python) > would I use to reach as many users as possible, and on top of that, > which (if any) framework should I use to develop this web application? A lot of appl

[Tutor] mod_python, mod_wsgi, web.py, django! What to use?

2008-09-28 Thread Alec Henriksen
Hello, This is my first time posting to this board, so please forgive me if I mess something up. So, lets say I want to develop a distributable web application (such as phpBB or Drupal) for Python. What platform (mod_wsgi, mod_python) would I use to reach as many users as possible, and on top of

Re: [Tutor] mod_python

2007-01-02 Thread Luke Paireepinart
Jalil wrote: > I was just wondering if anyone know of a any good site with examples > of mod_python tutorial. > the mod_python manual assume isnt really that helpful. I have been learning mod_python recently and I found the manual to be quite good... what are you having problems with specifically

[Tutor] mod_python

2007-01-02 Thread Jalil
I was just wondering if anyone know of a any good site with examples of mod_python tutorial. the mod_python manual assume isnt really that helpful. thanks ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
> > That's great news! Does the whole thing work now, including the > integration with mod_python? Hi Danny, Yes, everything works now. The problem was the mysqldb copy I had. I also noticed that i had made a mistake by writting > db.commit() > db.close() instead of: conn.comm

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Danny Yoo
> I downloaded the latest version of mysqldb and my code worked. btw, I > changed it to %s instead of %d. Hi Patty, That's great news! Does the whole thing work now, including the integration with mod_python? I'm following up and making sure that the problem was simply the stale copy of MySQL

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
Hi Danny, I downloaded the latest version of mysqldb and my code worked. btw, I changed it to %s instead of %d. Thanks! Patty ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Danny Yoo
On Thu, 23 Feb 2006, Patty wrote: > def addpercent(mp, lp): > conn = MySQLdb.connect(host = "localhost", user = "root", passwd = > "",db ="my_db") > cursor = conn.cursor() > cursor.execute (""" > UPDATE targets > SET mario_percent = %d, lizard_

[Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
Hi! I'm new to python and MySQl and have problems trying to figure out what is wrong with my code. I have two files: ***control.py*** #!/usr/bin/python import MySQLdb def addpercent(mp, lp): conn = MySQLdb.connect(host = "localhost", user = "root", passwd = "",db ="my_db") cursor

Re: [Tutor] mod_python and other web frameworks

2006-01-26 Thread Intercodes
 Christian,You are certainly right. I couldn't get anything apart from "Hello world" coding in mod_python. The mod_python manual is also bit vague, not for beginners. I wonder why there aren't any good tutorials on mod_python. I am having a look at quixote as a developer in this list suggested. I w

Re: [Tutor] mod_python and other web frameworks

2006-01-26 Thread Christian Wyglendowski
And "as a beginner", I would _not_ start with something like mod_python ;-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Intercodes Sent: Wednesday, January 25, 2006 12:59 PM To: tutor@python.org Subject: [Tutor] mod_python and other web frame

Re: [Tutor] mod_python and other web frameworks

2006-01-26 Thread wkranec
There seems to be a discussion about this sort of thing every other week or so, and I'm always surprised that no one mentions Cheetah Templates (www.cheetahtemplate.org). It's useful for both web and non-Web applications, and has a straightforward syntax that pretty much *is* Python. For web prog

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Ben Vinger
--- Intercodes <[EMAIL PROTECTED]> wrote: > List: I am still open to suggestions. Being also keen to write better web apps in Python, I've spent a considerable amount of time reading about this (and it is indeed confusing), I've opted to try out something like Pylons or Turbogears. One thing I w

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
Thanks for the input guys. I think ill go with Quixotemod_pythonpostgresXHTMLIll let you know if I have done something useful with the above four :DTYIntercodes >If you're looking to do some Python coding to put your site together,>you might take a gander at Quixote>(http://www.mems-exchange.org/so

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Gabriel S Farrell
On Thu, Jan 26, 2006 at 02:07:43AM +0530, Intercodes wrote: > Lolo, > > Thanks for the boost up. I am looking at PSP now and it seems promising. 3 > days is impossible for me :) ...maybe a week or more. I will certainly have > a look at 'mighty' once I am familiar with mod_python. > > List: I am

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
Liam, I checked the wiki video sometime back. If my memory wont fail me, the guy there never used a single line of python code ;) (I may be wrong) It seemed a totally new language that he used to create that wiki. Iam more inclined to code a lot rather than deal with such high abstraction, as I wou

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Liam Clarke
On 1/26/06, Intercodes <[EMAIL PROTECTED]> wrote: > Liam, > > I checked the wiki video sometime back. If my memory wont fail me, the guy > there never used a single line of python code ;) (I may be wrong) It seemed > a totally new language that he used to create that wiki. > > Iam more inclined to

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
Lolo,Thanks for the boost up. I am looking at PSP now and it seems promising. 3 days is impossible for me :) ...maybe a week or more. I will certainly have a look at 'mighty' once I am familiar with mod_python. List: I am still open to suggestions.Thank You.Intercodes--

Re: [Tutor] mod_python and other web frameworks

2006-01-25 Thread Liam Clarke
Hi, I recommend checking out the Turbogears 20 minute Wiki tutorial, although I'd hold off using it until the 0.9 release comes out with some useful changes. When you use it, it sits behind mod_python and responds to requests made. You can see a Turbogears error message here - :D http://digitalso

[Tutor] mod_python and other web frameworks

2006-01-25 Thread Intercodes
Hello everyone,Disclaimer:  Beginner.I have an idea of coding a web application and decided to do it entirely with python (reddit style). I started looking for web programming in python and somehow I saw mod_python first. Iam perusing the help document now. Few minutes of browsing confused my mind

Re: [Tutor] Mod_python greedy url matching

2005-10-05 Thread Danny Yoo
On Wed, 5 Oct 2005, Jay Loden wrote: > I'm having trouble with Apache and Mod_python - mod_python is set to use > /var/www/html and pass all *.htm files on to the handler I wrote. > Unfortunately, mod_python does a greedy match, so > /var/www/html/subdirectory/file.htm still gets passed to the h

[Tutor] Mod_python greedy url matching

2005-10-04 Thread Jay Loden
I'm having trouble with Apache and Mod_python - mod_python is set to use /var/www/html and pass all *.htm files on to the handler I wrote. Unfortunately, mod_python does a greedy match, so /var/www/html/subdirectory/file.htm still gets passed to the handler! Is there some way to limit the hand

Re: [Tutor] mod_python on OS X

2005-09-05 Thread Jan Eden
Hi Danny, Danny Yoo wrote on 05.09.2005: > >On Mon, 5 Sep 2005, Jan Eden wrote: >>[Sat Sep 03 23:01:52 2005] [notice] child pid 2334 exit signal Bus >>error (10) [Sat Sep 03 23:01:53 2005] [notice] child pid 2333 exit >>signal Bus error (10) > >It looks that you have a locally customized verison

Re: [Tutor] mod_python on OS X

2005-09-05 Thread Danny Yoo
On Mon, 5 Sep 2005, Jan Eden wrote: > I just tried installing mod_python on OS X (10.3.9). Installation went > fine, and Apache starts up without complaining: > > Apache/2.0.53 (Unix) DAV/2 PHP/5.0.1 mod_python/3.1.4 Python/2.4.1 > mod_perl/2.0.1 Perl/v5.8.1 configured -- resuming normal operati