[Zope] urllib permission setting when accessing a zope ob from python

Dieter Maurer dieter at handshake.de
Tue Aug 12 22:51:02 EDT 2003


Giuseppe Bonelli wrote at 2003-8-12 14:50 +0200:
 > I have a problem with a permission setting when accessing a zope object
 > from python code, namely with urllib.
 > 
 > Here is my situation:
 > I have a method which call an xslt transform (using 4Suite, if that
 > matters) and everything goes well unless when the xslt import another
 > xsl via <xsl:import href="imported.xsl"/> (yes, the URI passed for
 > resolving imports is correct).
 > 
 > In this case, an extra authorization step is required from whiten the
 > python console (_not_ through Zope login widget), after which everything
 > works normally.

Apparently, the server serving "imported.xsl" challenges with
an "Unauthorized" response. URLLIB does not have authentication
information and asks via the console.

Check the URLLIB documentation, maybe its source, how you can
provide authentication information from the environment.


Dieter



More information about the Zope mailing list