AuthKit bug: users.py UsersFromFile should read from fp, not filename

2007-03-16 Thread Chris Shenton
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:

Re: AuthKit using database for users, groups, roles?

2007-03-16 Thread pv
On 16 maalis, 23:16, Chris Shenton [EMAIL PROTECTED] wrote: I need to be able to create/modify/delete my AuthKit users through my webapp. The documented built-in users can come from the .ini file config vars or their own file. While I could conceivably change user info and write it back out

Routes generates bad URLs with args containing spaces

2007-03-16 Thread Mike Orr
I have a bunch of images with spaces in the filenames. I need to embed the filename in the URL with the proper escaping, so: 6001/1355/SHELLNAIRN08OCT05 _24_.jpg should be: /attachments/6001/1355/SHELLNAIRN08OCT05%20_24_.jpg I have a route like this: NUMERIC = R\d+

Re: AuthKit bug: users.py UsersFromFile should read from fp, not filename

2007-03-16 Thread James Gardner
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 =

Re: AuthKit using database for users, groups, roles?

2007-03-16 Thread James Gardner
Hi Pauli, I always implement my own database, permissions and valid() function in my code. The users API is simply meant for use in small systems where there isn't any need for a more sophisticated solution. Although you could create your own implementation of the API to use a database, it is

Re: Routes generates bad URLs with args containing spaces

2007-03-16 Thread Damjan
Isn't + and %20 considered the same in HTTP?? On Mar 17, 12:12 am, Mike Orr [EMAIL PROTECTED] wrote: I have a bunch of images with spaces in the filenames. I need to embed the filename in the URL with the proper escaping, so: 6001/1355/SHELLNAIRN08OCT05 _24_.jpg should be: