-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jul 5, 2006, at 3:08 PM, Michael Bayer wrote:

Michael, thanks for the response.  Just a quick follow up on one  
issue, since I'm still thinking about the others.

> On Jul 5, 2006, at 12:59 PM, Barry Warsaw wrote:
>
>>
>> /usr/local/mailman/lists/[EMAIL PROTECTED]/members.db
>>
>> so my url is:
>>
>> sqlite:////usr/local/mailman/lists/[EMAIL PROTECTED]/members.db
>>
>> (note the 4 slashes -- I've read some of this list's archives)
>>
>> However, the members.db always ends up in /usr/local/mailman/
>> members.db, which is the pwd that I'm running my tests in.  I've
>> verified that it always creates members.db in the cwd.  Is it the '@'
>> in the url that's screwing things up?
>>
>
> very likely since @ is part of the regexp used to parse out the  
> [EMAIL PROTECTED]  you might want to play with sqlalchemy.engine.url.URL  
> directly to see whats going on .  we're doing rfc1738 for these so  
> perhaps url escaping would be the solution for this (would have to  
> build support for that into URL).

Maybe a buglet in the _parse_rfc1738_args() regexp?  If you change  
the first character set from [^:]* to [^:/]* it works:

     pattern = re.compile(r'''
             (\w+)://
             (?:
                 ([^:/]*)
                 (?::([^/]*))?
             @)?
             (?:
                 ([^/:]*)
                 (?::([^.]*))?
             )?
             (?:/(.*))?
             '''
             , re.X)

Thoughts?  Shouldn't you stop the match at the third slash?

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iQCVAwUBRLAJN3EjvBPtnXfVAQJZQQP+JiwzL3NyP1LNd6OL0vYZ+wN9hhw6JWGW
mtxC7lqA8AO+WHBlaNVx5GzWl2dp2AaYDdaMZ5VL19C8IXcBfod2uqfW6U8QfEOJ
n3sIhf0TUJulmMoXXaObkRWDcqPCMwdlNcSDRfsBvC7n14Hw6G0ouaw27cwmb+LP
bWiB4vNMhzo=
=fkeB
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to