Closed tdamsma closed 8 years ago
@tdamsma thanks for the PR, but I'm worried I might break some older pyramid applications, this property on request appeared in pyramid 1.5, on other hand 1.5 is over 2 years old so it should be fine, any thoughts?
Maybe you could wrap it in a helper that would import from other location if its not found on request?
I guess the question then is, what version of pyramid do you want to support. I could't find any version requirements in the code.
I think it should work from version 1.0 or 1.2 - don't remember exactly. We could make it 1.4 minimal though.
Would be good to make whichever version you decide as minimum explicit. I believe you could do that by adding somthing like extras_require={'pyramid':'pyramid>=1.4'}
to setup.py
Merging this, thank you. @tdamsma Please add yourself to the authors file.
use request.unauthenticated_userid, instead of
from pyramid.security import unauthenticated_userid