[ome-devel] WebUI HTML Templating and Custom Annotation (Modified by T. J. Macura)

T. J. Macura tm289 at cam.ac.uk
Mon Aug 15 20:01:11 BST 2005


Hi,

Josiah and I finished some work that causes major changes to how the 
Installer and WebUI handles HTML templates.
This was motivated by [Bug 531] 
http://bugs.openmicroscopy.org.uk/show_bug.cgi?id=531 and Arpun's 
Custom Annotation Web-UI tool that creates
new templates.

OME now differentiates between two types of templates:
    system template that are written by OME developers (i.e us)
    user templates that are created by OME users via, e.g., Custom 
Annotation Web-UI tool

During an OME install, system templates must be added/modified/removed 
based on changes in CVS.
However user templates must not be modified.

We adopt the convention that all template directories named 'System' 
(and all the files/directories under them) are considered system 
directories. All other template directories are considered 
user-directories.

During each OME install, `System` directories are made to mimick (first 
by wiping, then by copying) the
structure from the OME distribution. A comparision is made of the user 
template directory structure
under /OME/html/Templates and src/html/Templates in the distribution. 
New user directories (and any
files they contain) are copied from the distribution.

System template permissions are set to 550. Permissions of user 
templates (and directories) are set
to 750. Their owner becomes APACHE-USER.

During the install there is an option to elect  'developer 
configuration for templates.' In that case,
templates are read from the CVS distribution directly. During 
dev-config=1 installer steps for
removing, copying, owner changing, permission changing, are skipped -- 
ofcourse.

This work has Good/Bad ramifications:
	(Good) Arpun's custom Annotations stuff works "out-of-the-box" during 
a regular OME install.
	(Bad) We had to move folders around in CVS. So clear out the Templates 
directory before you do a cvs update. e.g.
[siah-tibook:~] josiah% cd ~/OME/cvs/OME/src/html/Templates/
[siah-tibook:OME/src/html] josiah% rm -rf Templates
[siah-tibook:OME/src/html] josiah% cvs up -dPA Templates

Happy Times,

Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2474 bytes
Desc: not available
Url : http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20050815/efa5245e/attachment.bin


More information about the ome-devel mailing list