Ticket #1403 (closed defect: fixed)
ToscaWidgets paths mounted wrong when server.webpath used
| Reported by: | paj | Owned by: | alberto |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.x bugfix |
| Component: | ToscaWidgets | Version: | 1.0.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
In my dev.cfg I've set server.webpath so my app is not mounted at the root. Now, ToscaWidgets? that were previously mounted at, say: /toscawidgets/resources/toscawidgets.widgets.forms.calendars/static/calendar/calendar-system.css Are now mounted at: /invweb/invweb/toscawidgets/resources/...
Notice the double /invweb - it should only be there once. I managed to get myself going for now, using the attached patch. Clearly this patch isn't ready to be committed, but I hope it helps.
Attachments
Change History
Changed 5 years ago by paj
-
attachment
dodgy-webpath.patch
added
comment:1 Changed 5 years ago by alberto
- Status changed from new to closed
- Resolution set to fixed
Well, I think the patch isn't that dodgy given the circumstances... :) mods.tg is really a big hack to get TW running in TG 1.0 since the preferred way for it to integrate with the framework is through its middleware (which provides a context and serves resources).
I couldn't manage to do so due some obscure reason I don't remember right now so mods.tg is what there is. 1.1 will support TW's native means of integration so I see no problem in applying this if it Does The Job now since the whole hack will not be needed, eventually.
Applied at [3079]. Thanks! :)
Alberto
comment:2 Changed 5 years ago by alberto
- Status changed from closed to reopened
- Resolution fixed deleted
Patch breaks whe using multimple RootControllers?. See this thread for more info.
Alberto
comment:5 Changed 4 years ago by alberto
- Status changed from reopened to closed
- Resolution set to fixed
This should be fixed since http://beta.toscawidgets.org/trac/tw/changeset/289%3A825152e28ab0.
Please create a ticket at ToscaWidgets's Trac if it's not.
Alberto
Hacky patch that gets me going