[py-dev] svn auth - revisiting svnwc auth object passing
Guido Wesdorp
johnny at johnnydebris.net
Wed Feb 20 22:43:04 CET 2008
Hi there!
I've implemented auth support for py.path.svnurl now too, seems to work
nicely. Since it requires authentication for just about all its methods,
I decided (after some discussion with Holger on IRC and some playing
around) to not have an 'auth' argument to all of the methods. Instead
only the constructor groks an auth argument, path objects that are
generated by any of the path's methods 'inherit' it, and an
'svnurl.auth' property is exposed to allow overriding it. It took a bit
of playing around to get it to work properly, but I think it does now,
please take a look if you're interested.
If you like the way this works, I would (again ;) like to ask whether
I'm allowed to change svnwc so it works the same there - at least, both
for consistency's sake and because it's a bit cleaner imo - have an auth
property instead of having the argument to all methods that can connect
to the server would be nice...
Please let me know what you think.
Cheers,
Guido
More information about the py-dev
mailing list