Re: [Zope-dev] ZPublisher.Client and encrypted passwords

2003-03-26 Thread Leonardo Rochael Almeida
On Tue, 2003-03-25 at 23:35, Jamie Heilman wrote: > Danny W. Adair wrote: > > 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,pw

Re: [Zope-dev] ZPublisher.Client and encrypted passwords

2003-03-25 Thread Jamie Heilman
Danny W. Adair wrote: > 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(

Re: [Zope-dev] ZPublisher.Client and encrypted passwords

2003-03-25 Thread Danny W. Adair
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. Tha

Re: [Zope-dev] ZPublisher.Client and encrypted passwords

2003-03-25 Thread Adrian van den Dries
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(':') a. -- Adrian van den Dries [EMAIL PR

Re: [Zope-dev] ZPublisher.Client and encrypted passwords

2003-03-25 Thread Danny W. Adair
At 10:04 AM 3/26/2003 +1100, Adrian van den Dries wrote: On March 26, Danny W. Adair wrote: > - use a different approach to call the other server (like passing a > copy of the current Auth header or something...) BaseRequest._auth holds the original auth header, so you can just forward it along. Th

Re: [Zope-dev] ZPublisher.Client and encrypted passwords

2003-03-25 Thread Adrian van den Dries
On March 26, Danny W. Adair wrote: > - use a different approach to call the other server (like passing a > copy of the current Auth header or something...) BaseRequest._auth holds the original auth header, so you can just forward it along. a. -- Adrian van den Dries [

[Zope-dev] ZPublisher.Client and encrypted passwords

2003-03-25 Thread Danny W. Adair
Hi, I need to make an authenticated call from one Zope server to another. Although the two servers share most of their object trees (including the main user folder) through a common ZEO ClientStorage, I have to call the script on a _specific_ machine, since it will make changes to the local fi

[Zope-dev] Fw: [Zope-dev] ZPublisher.Client

2000-10-10 Thread Loren Stafford
- Original Message - From: "Loren Stafford" <[EMAIL PROTECTED]> To: "Andrew Edmondson" <[EMAIL PROTECTED]> Sent: October 09, 2000 10:59 AM Subject: Re: [Zope-dev] ZPublisher.Client > This is a known problem. > http://classic.zope.org

Re: [Zope-dev] ZPublisher.Client

2000-10-10 Thread Dieter Maurer
Andrew Edmondson writes: > I used to use Client.py quite a lot for calling zope objects through the web > from python. > > However, now that I've upgraded to Zope 2.x it fails. > __call__ > raise NotAvailable, RemoteException( > bci.NotAvailable: (111, 'Connection refused') (File: > h

[Zope-dev] ZPublisher.Client

2000-10-09 Thread Andrew Edmondson
I used to use Client.py quite a lot for calling zope objects through the web from python. However, now that I've upgraded to Zope 2.x it fails. (Zope 2.2 ZPublisher, connecting to Zope 2.1.2) Traceback (innermost last): File "/u/g/aedmondson/backups/pack_db.py", line 22, in ? pack() Fil