At 10:23 AM 3/26/2003 +1100, Adrian van den Dries wrote:
On March 26, Danny W. Adair wrote:
> Thanks. How would I do that?
> ZPublisher.Client.call() is very convenient but only takes
> url,username,pwd...

import base64
user, pass = base64.decodestring(req._auth.split(' ')[1]).split(':')

Nice.


Thank you!
Btw, I changed "pass" to "pwd" :-)

Danny


_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to