Forum OpenACS Q&A: Re: Current state of theming in OpenACS (without .LRN)
I'm working on a script that makes a new openacs package which is a theme that can be applied to a subsite. I believe I'm at 60% before a bug shakedown of the script, this is after about 2 days, and so I expect maybe 2-3 more hack sessions before the script has generated its first working theme package.
In this thread, Dave Bauer refers to automation to make a theme package; this script is meant to fill that bill.
See the action:
git clone git://github.com/jwlynch/openacs-theme-create.git
I'll add more stuff as I go. Next thing is a little report at the end to show the values for a subsite's theming parameters to use that theme.
the way this script works is really simple... it copies a dirfull of files, renames a couple then points everything at the new package.
I didn't set the package-name and pretty-plural values, so they took their value from the package copied from, which means they won't be unique as required by a database constraint.
So this update makes sure there are unique string values in those two variables, and when testing by trying to install the generated package showed the package installed without any problems.