plone/plone.api — Issue #1: get_site and get_request limitations
Author: zupo
Created: 2012-02-27 12:36:36+00:00
State: open

Quoting davisagli: "Regarding the calls like get_site_url() and get_request(), it's a bit misleading to say that these will *always* be available. It would be good to warn that the API is intended for use within code published by the ZPublisher (which sets up the necessary thread locals), as opposed to external methods or code run via bin/instance run or whatever."

We need to make a list use-cases when get_site and get_request will not work so we can put it in the documentation of the methods.