2 messages in com.googlegroups.pylons-discussAuthKit bug: users.py UsersFromFile s...
FromSent OnAttachments
Chris Shenton16 Mar 2007 15:01 
James Gardner16 Mar 2007 17:57 
Subject:AuthKit bug: users.py UsersFromFile should read from fp, not filename
From:Chris Shenton (chri@public.gmane.org)
Date:03/16/2007 03:01:43 PM
List:com.googlegroups.pylons-discuss

Using AuthKit-0.3.0pre5.

The code gets the file pointer but then reads from the filename string:

def __init__(self, filename): string = None try: fp = open(filename, 'r') string = filename.read() finally: fp.close()

should be:

string = fp.read()

I tried to log a ticket in AuthKit's trac but don't have an account.