From: Dwayne B. <dw...@tr...> - 2008-10-02 14:04:54
|
On Wed, 2008-10-01 at 00:30 +0200, Nicolas François wrote: > Hello, > > On Debian, the templates directory is installed separately from the Pootle > directory. > (The original reason was that html files could be installed separately > from the code). > This is just done by changing Pootle/filelocations.py > > To continue supporting this with the kid templates containing code, I had > to apply the attached patch. > > It restricts and specifies the path containing the file which can be > imported from the templates, and removes the "from Pootle.templates " in > front of the import lines in the templates. > > Do you think this is correct, or should I just move the templates > directory back inside the Pootle directory? On the test Fedora builds I split these files. I place *.kid in the Pootle/templates and the others in /usr/share/pootle/templates I will leave it to the experts, I was always concerned about having executable code in /usr/share -- Dwayne Bailey Associate +27 12 460 1095 (w) Translate.org.za +27 83 443 7114 (c) Recent blog posts: * Almost there - Virtaal and OpenDocument http://www.translate.org.za/blogs/dwayne/en/content/almost-there-virtaal-and-opendocument * Spelling Rulz * The birth of the GNU generation |