Pass the request down to the Sitemap callable
|Reported by:||rm_||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It would be handy if the Sitemap would know a bit more about the environment so pass down to it the request. This is useful for me because i serve the same app under different domains and i'd like to serve a bit different sitemap. This could be useful too if you want to serve a different sitemap depending on the REMOTE_ADDR or HTTP_USER_AGENT.
Diffed against r17606.
Tests looks ok:
$ PYTHONPATH=. tests/runtests.py --settings=test_sqlite
Creating test database for alias 'default'...
Creating test database for alias 'other'...
Ran 4678 tests in 627.803s
OK (skipped=94, expected failures=2)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Change History (5)
Changed 2 years ago by rm_
comment:1 Changed 2 years ago by aaugustin
- Needs documentation set
- Needs tests set
- Patch needs improvement unset
- Resolution set to needsinfo
- Status changed from new to closed
comment:2 follow-up: ↓ 3 Changed 7 weeks ago by me@…
- Resolution needsinfo deleted
- Status changed from closed to new