[#554] - Add support for CDN with static resources

This commit includes a lot

  • Move the resourcemanager to middleware
  • Move the static file server to middleware
  • Allow customization of the base url (what we use when generating href=s) for ew and static resources
  • Allow customization of the script name (where we serve the resource from) for ew and static resources
  • Set caching headers on static resources to ensure everything's browser-cached
  • Some additions to setup.py requirements discovered when rebuilding my virtualenv

Rick Copeland Rick Copeland 2010-06-10

changed ForgeWiki/forgewiki/templates/wiki_master.html
changed HelloForge/setup.py
changed pyforge/pyforge/config/middleware.py
changed pyforge/pyforge/controllers/project.py
changed pyforge/pyforge/controllers/root.py
changed pyforge/pyforge/controllers/static.py
changed pyforge/pyforge/controllers/test.py
changed pyforge/pyforge/lib/app_globals.py
changed pyforge/pyforge/lib/custom_middleware.py
changed pyforge/pyforge/lib/macro.py
changed pyforge/pyforge/templates/master.html
changed pyforge/pyforge/templates/master_one_col.html
changed pyforge/pyforge/tests/functional/test_static.py
changed pyforge/pyforge/tests/test_globals.py
changed pyforge/development.ini
changed pyforge/setup.py
changed pyforge/test.ini
ForgeWiki/forgewiki/templates/wiki_master.html Diff Switch to side-by-side view
Loading...
HelloForge/setup.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/config/middleware.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/controllers/project.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/controllers/root.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/controllers/static.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/controllers/test.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/lib/app_globals.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/lib/custom_middleware.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/lib/macro.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/templates/master.html Diff Switch to side-by-side view
Loading...
pyforge/pyforge/templates/master_one_col.html Diff Switch to side-by-side view
Loading...
pyforge/pyforge/tests/functional/test_static.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/tests/test_globals.py Diff Switch to side-by-side view
Loading...
pyforge/development.ini Diff Switch to side-by-side view
Loading...
pyforge/setup.py Diff Switch to side-by-side view
Loading...
pyforge/test.ini Diff Switch to side-by-side view
Loading...