Open saily opened 9 years ago
We should build a little bit more intelligence into request retrieval here: https://github.com/plone/plone.protect/blob/master/plone/protect/utils.py#L22
I'd suggest to use something simliar to:
request = getattr(context, 'request', getattr(context, 'REQUEST', getRequest()))
Using getRequest() should be sufficient.
We should build a little bit more intelligence into request retrieval here: https://github.com/plone/plone.protect/blob/master/plone/protect/utils.py#L22
I'd suggest to use something simliar to: