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

0003477: createtemplates.py ignores $FILE.custom.tmpl - MantisBT
MantisBT - Endian Firewall
View Issue Details
0003477Endian FirewallOther Scriptspublic2011-02-11 17:112012-10-05 14:05
ardit-endian 
peter-endian 
normalminoralways
confirmedopen 
2.4.1 
 
0003477: createtemplates.py ignores $FILE.custom.tmpl
Hello,

as the title states, after we create a new file /usr/share/templates/dansguardian/en/template.html.custom.tmpl , modify it according to our needs and launch createtemplates.py -df I see during the execution of the script that the new file custom.tmpl it's ignored completely and for creating /usr/share/dansguardian/languages/en/template.html uses always the file .orig.tmpl

I suppose it's the same behavior about .vendor. (OEM) file (but I didn't test this).

In attachment you will find my testing and other *strange* behaviors related.
tested on kenny (full up-to-date)...
purple
child of 0001136closed peter-endian framework for customized error message pages 
? createtemplates.py-df testing 2.4 (6,916) 2011-02-11 17:11
https://bugs.endian.com/file_download.php?file_id=610&type=bug
Issue History
2011-02-11 17:11ardit-endianNew Issue
2011-02-11 17:11ardit-endianFile Added: createtemplates.py-df testing 2.4
2011-02-11 17:11ardit-endianCustomer Occurencies => 2-3
2011-02-11 17:13ardit-endianTag Attached: purple
2011-02-24 14:20lorenzo-endianAssigned To => lorenzo-endian
2011-03-02 10:48lorenzo-endianNote Added: 0005792
2011-03-02 10:48lorenzo-endianAssigned Tolorenzo-endian => peter-endian
2011-03-02 10:48lorenzo-endianStatusnew => confirmed
2011-07-22 13:16ardit-endianNote Added: 0007056
2012-10-05 14:05ardit-endianRelationship addedchild of 0001136

Notes
(0005792)
lorenzo-endian   
2011-03-02 10:48   
Hi ardit!

you are right...to confirm this, I just create a custom templates as you did and I redirect the output to grep...

This is the result:

root@efw-test-3304:/usr/share/templates/dansguardian/en # createtemplates.py -df 2>&1 | grep template.html.custom.tmpl
root@efw-test-3304:/usr/share/templates/dansguardian/en # createtemplates.py -df 2>&1 | grep template.html.orig.tmpl
2011-03-02 11:45:01,606 - createtemplates.py[21071] - DEBUG - Processing source template '/usr/share/templates/dansguardian/en/template.html.orig.tmpl' for message template 'template.html' with source language 'en', destination language 'en' and service 'dansguardian'
2011-03-02 11:45:01,613 - createtemplates.py[21071] - DEBUG - Use template '/usr/share/templates/dansguardian/en/template.html.orig.tmpl' for file 'template.html'
2011-03-02 11:45:01,614 - createtemplates.py[21071] - DEBUG - Found templates '{'body': '/usr/share/templates/dansguardian/en/template.html.orig.tmpl', 'header': None, 'footer': None}' for 'template.html'
2011-03-02 11:45:01,617 - createtemplates.py[21071] - DEBUG - Create 'body' contents using template '/usr/share/templates/dansguardian/en/template.html.orig.tmpl'
2011-03-02 11:45:01,681 - createtemplates.py[21071] - DEBUG - Processing source template '/usr/share/templates/dansguardian/de/template.html.orig.tmpl' for message template 'template.html' with source language 'de', destination language 'de' and service 'dansguardian'
2011-03-02 11:45:01,686 - createtemplates.py[21071] - DEBUG - Use template '/usr/share/templates/dansguardian/de/template.html.orig.tmpl' for file 'template.html'
2011-03-02 11:45:01,687 - createtemplates.py[21071] - DEBUG - Found templates '{'body': '/usr/share/templates/dansguardian/de/template.html.orig.tmpl', 'header': None, 'footer': None}' for 'template.html'
2011-03-02 11:45:01,688 - createtemplates.py[21071] - DEBUG - Create 'body' contents using template '/usr/share/templates/dansguardian/de/template.html.orig.tmpl'
2011-03-02 11:45:01,730 - createtemplates.py[21071] - DEBUG - Processing source template '/usr/share/templates/dansguardian/it/template.html.orig.tmpl' for message template 'template.html' with source language 'it', destination language 'it' and service 'dansguardian'
2011-03-02 11:45:01,735 - createtemplates.py[21071] - DEBUG - Use template '/usr/share/templates/dansguardian/it/template.html.orig.tmpl' for file 'template.html'
2011-03-02 11:45:01,739 - createtemplates.py[21071] - DEBUG - Found templates '{'body': '/usr/share/templates/dansguardian/it/template.html.orig.tmpl', 'header': None, 'footer': None}' for 'template.html'
2011-03-02 11:45:01,740 - createtemplates.py[21071] - DEBUG - Create 'body' contents using template '/usr/share/templates/dansguardian/it/template.html.orig.tmpl'
2011-03-02 11:45:01,782 - createtemplates.py[21071] - DEBUG - Processing source template '/usr/share/templates/dansguardian/en/template.html.orig.tmpl' for message template 'template.html' with source language 'en', destination language 'ja' and service 'dansguardian'
2011-03-02 11:45:01,785 - createtemplates.py[21071] - DEBUG - Use template '/usr/share/templates/dansguardian/en/template.html.orig.tmpl' for file 'template.html'
2011-03-02 11:45:01,787 - createtemplates.py[21071] - DEBUG - Found templates '{'body': '/usr/share/templates/dansguardian/en/template.html.orig.tmpl', 'header': None, 'footer': None}' for 'template.html'
2011-03-02 11:45:01,789 - createtemplates.py[21071] - DEBUG - Create 'body' contents using template '/usr/share/templates/dansguardian/en/template.html.orig.tmpl'
root@efw-test-3304:/usr/share/templates/dansguardian/en #


Thanks for reporting this issue :)

Lo
(0007056)
ardit-endian   
2011-07-22 13:16   
any news about ?