Hi folks, 

I have now managed to produce something that works, so thought I'd annouce
it if anybody's interested.

The new code is an a cvs branch called ui_branch.

Here's a summary of what I have done.

* Create Obs::Html perl module to handle the most common html output we do
in obsequieum.

This module does two things really, firstly it defines constants, for
'style' parameters, such as the colours and images to use. 

It also provides some code to output tables, which has helped reduce the
size and complexity of most of the cgi scripts. It should also make it
fairly simpler to change the appearance of any of these tables in future. 

* Modify all the cgi's to use this new module.

These changes are fairly simple on the whole.

* Modify playlist.pl to accept an add_artist parameter.

* Modify install-www.pl to 'remember' locations (stored in a
.install.locations file) (sorry not really related, but I got pissed off
with having to reinstall every ten seconds)

THINGS TO DO

* Modify the install-www.pl script to insert the colour constants in to
the static html pages.

* Seperate 'style' constants into a separate file(?) 

* Implement I18N for obs, somehow. (btw I had a look at what openwebmail
are using - I think it is a reasonable approach).

* Clean up and improve Obs::Html to make it more generic.

My main problem with Obs::Html module, is the 'logic' that I used to
generate the various URL required for the add, show, remove, and admin
links. These started fairly simple, when I was just working on the obs
front-page, but got gradually more messy once, I had added djr, admin, and
sched (does this sched stuff actually do anything???).

Anyway, the code is in Obs::Html starting at lines 229, 287, 313, 337 for
example.

Got to run now, sorry, let me know if you have problems, comments, or
suggestions.

Rob


-- 
+-------------------------------------+
| "It's only a trap if you don't take |
| a ladder with you to get out of it" |
|               -S Ring, Bath Uni     |
|                                     |
| [EMAIL PROTECTED]                   |
| http://www.nott.ac.uk/~enxrah       |
+-------------------------------------+

_______________________________________________
Obs-dev mailing list
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/obs-dev

Reply via email to