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 Endian Bugtracker
Endian Issue Tracker





Please see now our new Bugtracker system: JIRA








View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003477Endian FirewallOther Scriptspublic2011-02-11 17:112012-10-05 14:05
Reporterardit-endian 
Assigned Topeter-endian 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version2.4.1 
Target VersionFixed in Version 
Summary0003477: createtemplates.py ignores $FILE.custom.tmpl
DescriptionHello,

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.
Additional Informationtested on kenny (full up-to-date)...
Tagspurple
Attached Files? file icon createtemplates.py-df testing 2.4 [^] (6,916 bytes) 2011-02-11 17:11

- Relationships
child of 0001136closedpeter-endian framework for customized error message pages 

-  Notes
(0005792)
lorenzo-endian (manager)
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 (developer)
2011-07-22 13:16

any news about ?

- Issue History
Date Modified Username Field Change
2011-02-11 17:11 ardit-endian New Issue
2011-02-11 17:11 ardit-endian File Added: createtemplates.py-df testing 2.4
2011-02-11 17:11 ardit-endian Customer Occurencies => 2-3
2011-02-11 17:13 ardit-endian Tag Attached: purple
2011-02-24 14:20 lorenzo-endian Assigned To => lorenzo-endian
2011-03-02 10:48 lorenzo-endian Note Added: 0005792
2011-03-02 10:48 lorenzo-endian Assigned To lorenzo-endian => peter-endian
2011-03-02 10:48 lorenzo-endian Status new => confirmed
2011-07-22 13:16 ardit-endian Note Added: 0007056
2012-10-05 14:05 ardit-endian Relationship added child of 0001136

Copyright © 2005-2008 Endian, SRL. All rights reserved.


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker