In my ongoing preparations to set up test servers at our partner schools, I figured out an easy solution to a nagging problem. For various reasons we want to do the setup entirely with scripts (rather than the web UI) which is generally more or less straightforward.
I was feeling flummoxed by the timetable setup, which is necessarily complex both in its execution in the real world (St. Ives has over a dozen periods in a day, which start and end at different times for different grades) and in our code. For this, it is easier to set up the timetable schema in the web UI, then export it as XML. From there, a setup script can import the schema and re-create it on demand. I'm keeping copies of the setup scripts in a bzr repository here: ftp://ftp.schooltool.org/pub/schooltool/setup-scripts/ with the relevant script for timetables here: ftp://ftp.schooltool.org/pub/schooltool/setup-scripts/stives/timetable.py I'll get more useful documentation of the process on schooltool.org soon. I'm just happy I solved this problem. I think the setup scripts are all downhill from here. --Tom _______________________________________________ Schooltool mailing list [email protected] http://lists.schooltool.org/mailman/listinfo/schooltool
