Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote resource resulotion with read_network == false #18

Open
reedobrien opened this issue Jul 2, 2013 · 0 comments
Open

remote resource resulotion with read_network == false #18

reedobrien opened this issue Jul 2, 2013 · 0 comments

Comments

@reedobrien
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant