fix: ensure Buefy version matches what we use for custom css

this is an alright solution for now, but may need to improve in the
future once we look at Vue 3 etc.

basically the only reason this solution isn't terrible, is because
buefy 0.9.x (for Vue 2) is "stable"
This commit is contained in:
Lance Edgar 2026-02-07 17:04:02 -06:00
parent 19b6738e5d
commit ba926ec2de

View file

@ -49,11 +49,16 @@ def main(global_config, **settings):
app = wutta_config.get_app()
path = app.resource_path("wuttafarm.web.static:css/wuttafarm-buefy.css")
if os.path.exists(path):
# TODO: this is not robust enough, probably..but works for me/now
wutta_config.setdefault(
"wuttaweb.liburl.buefy_css", "/wuttafarm/css/wuttafarm-buefy.css"
)
# nb. ensure buefy version matches what we use for custom css
wutta_config.setdefault("wuttaweb.libver.buefy", "0.9.29")
wutta_config.setdefault("wuttaweb.libver.buefy_css", "0.9.29")
# bring in the rest of WuttaFarm
pyramid_config.include("wuttafarm.web.static")
pyramid_config.include("wuttafarm.web.subscribers")