urllib permission setting when accessing a zope ob from python
Hi all, 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. In the log I have the following entry: 127.0.0.1 - Anonymous [12/Aug/2003:13:58:25 +0200] "GET styleSheet.xsl HTTP/1.0" 401 803 "" "Python-urllib/1.15" Obviously I already authenticated myself when starting the Zope session. Since the app should be deployed securely, I have disabled all anon role access (and transferred the relevant permission settings to the authenticated role). I am probably missing something very simple, ... but I don't get it !! Any ideas ? TIA, __peppo
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
participants (2)
-
Dieter Maurer -
Giuseppe Bonelli