bird-house / pyramid-phoenix

Phoenix is a Pyramid web-application to make it easy to interact with WPS services
http://pyramid-phoenix.readthedocs.io/en/latest/
Apache License 2.0
7 stars 10 forks source link

Not all templates are overridable #202

Closed tommygod3 closed 5 years ago

tommygod3 commented 5 years ago

Some templates and static files in Phoenix use asset specifications, because they show the package they come from they an be easily overridden. Example of asset specification in Phoenix: https://github.com/bird-house/pyramid-phoenix/blob/efc0e26cfdfc5b900f2ae0cac57d3d2610d19514/phoenix/panels.py#L9 Example of overriding template taking advantage of asset specification:

config.override_asset(
    to_override="phoenix:templates/panels/navbar.pt",
    override_with="my_templates_package:templates/panels/navbar.pt"
)

However not all assets in Phoenix do use asset specification, some are relative paths such as: https://github.com/bird-house/pyramid-phoenix/blob/efc0e26cfdfc5b900f2ae0cac57d3d2610d19514/phoenix/processes/views/list.py#L25 This stops those assets from being easily overridden and therefore I suggest that all asset relative paths be switched to asset specifications. I am happy to make this PR.

cehbrecht commented 5 years ago

A PR is welcome :)