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

Thanks, this is fixed now.

James

Chris Shenton wrote:

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.