Andreas Jung, on 2007-06-14:
> Write a PythonScript within the ZMI that calls the pack operation.
> Then call *this* script through wget.

I have found an alternative with urllib2.  I added it to
instancemanager.  For those interested, see this changeset:

Basically it is this:

import urllib2
import base64
# Create a request
req = urllib2.Request(url="http://localhost:8080/Control_Panel/
# Add an authorization header 
auth = base64.encodestring("user:password") 
req.add_header('Authorization', "Basic %s" % auth) 
# Use POST instead of GET: needed at least in Zope 2.9.7  
info = urllib2.urlopen(req)

Maurits van Rees | [NL]
            Work |
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to