Opened 15 years ago
Closed 11 years ago
#5950 closed defect (worksforme)
Chosen theme string is treated as case-sensitive
Reported by: | Owned by: | Olemis Lang | |
---|---|---|---|
Priority: | normal | Component: | ThemeEnginePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I am using Ubuntu Server (9.04) and Trac 0.11.1.
I installed the ThemeEngine plugin and a handful of themesfrom the source using easy_install, enabled them all, restarted the web server - all ok.
But when I chose a theme using the webadmin page, a message appeared saying that the "theme could not be found, check that the theme plugin has been enabled". The problem turned out to be the case of the theme name under the trac.ini [theme] section.
So, if I selected CrystalX, the automatically generated string of 'Crystalx' caused the error, but when I manually altered it to 'CrystalX' the theme worked.
I installed crystalx, pydotorg, gnomebr, gamedev, moveabletypeskin themes, and the only one that worked out of the box was gamedev.
Crystalx should be CrystalX Gnomebr should be GnomeBR Moveabletypeskin should be MoveableTypeSkin Pydotorg should be PyDotOrg
I reported it against the themeengine because it happens with a number of themes, so I am not sure where the problem lies.
Attachments (0)
Change History (4)
comment:2 Changed 15 years ago by
comment:4 Changed 11 years ago by
Owner: | changed from Noah Kantrowitz to Olemis Lang |
---|
comment:5 Changed 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I can't reproduce the issue running recent versions of the plugin . Feel free to reopen this ticket if failure is detected .
To give more information on this, it appears that the theme name gets written title-cased to the trac.ini file (e.g. GnomeBR -> Gnomebr, default -> Default).
Gamedev works because the internal theme name happens to match this capitalization.