SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0001136: framework for customized error message pages - MantisBT
MantisBT - Endian Firewall
View Issue Details
0001136Endian FirewallOther Scriptspublic2008-07-17 13:462008-07-27 20:18
peter-endian 
peter-endian 
immediatefeatureN/A
closedfixed 
 
2.2-rc22.2-rc2 
0001136: framework for customized error message pages
we need a python script which statically creates all the error message html pages using cheetah.

Error messages in squid, dansguardian, havp, amavisd and p3scan should be made overrideable and brandable.

script does the following:
- should be called as createtemplate.py [servicename]

- reads config from /etc/templates/<servicename>.conf

- loops through each /usr/share/templates/<servicename>/*/*.orig.tmpl and
  creates corresponding messages files in <destdir>, with the corresponding
  directory structure, cutting away .orig.tmpl

- searches for each original template a corresponding template of the same
  name, which may override the orig template.. searches in:
  o /var/efw/<efw_servicename>/templates/**.custom.tmpl
  o /usr/share/templates/<servicename>/*/*.vendor.tmpl

- applies header.tmpl and footer.tmpl if thex exist in one of the 3 locations.

- script will be run:#
  o at boot time
  o as %post hook of respective service installations
  o after editing/uploading custom templates

- templates of squid, havp, dansguardian, amavisd, p3scan should not be packaged
  in their original place anymore, but packaged in /usr/share/templates/ as
  cheetah orig template
No tags attached.
parent of 0003477confirmed peter-endian createtemplates.py ignores $FILE.custom.tmpl 
related to 0001137closed peter-endian p3scan error message template need to get rid of languages 
Not all the children of this issue are yet resolved or closed.
Issue History
2008-07-17 13:46peter-endianNew Issue
2008-07-17 13:46peter-endianStatusnew => assigned
2008-07-17 13:46peter-endianAssigned To => peter-endian
2008-07-17 13:47peter-endianIssue cloned: 0001137
2008-07-17 13:47peter-endianRelationship addedrelated to 0001137
2008-07-17 14:09peter-endianDescription Updated
2008-07-17 19:37peter-endianStatusassigned => resolved
2008-07-17 19:37peter-endianFixed in Version => 2.2-rc2
2008-07-17 19:37peter-endianResolutionopen => fixed
2008-07-17 19:37peter-endianNote Added: 0001461
2008-07-27 20:18peter-endianStatusresolved => closed
2012-10-05 14:05ardit-endianRelationship addedparent of 0003477

Notes
(0001461)
peter-endian   
2008-07-17 19:37   
respective changes in the services packages need still to be done