diazo
diazo copied to clipboard
remote resource resulotion with read_network == false
Using diazo with Paste as a WSGI server and proxy, it seems that the rules and theme resources are being requested from the origin content server -- on every request -- regardless of the fact that read_network = false
in the config.
With some request tracing/debugging it seems that lxml is performing the requests. I managed to get the expected behavior by setting the file protocol prefix on the rules target:
- rules = %(here)s/rules.xml
+ rules = file://%(here)s/rules.xml
I don't know if this started because of a change in lxml or if I have always mistakenly left off the file:// prefix. So I am not sure if this is a bug in anything really. I suppose it is at least a bug in the documentation.
The above occured with the following versions:
Paste==1.7.5.1
PasteDeploy==1.5.0
PasteScript==1.7.5
WebOb==1.2.3
argparse==1.2.1
diazo==1.0.3
distribute==0.6.24
experimental.cssselect==0.3
lxml==3.2.1
repoze.xmliter==0.5
wsgiref==0.1.2