[gen] Added a i18n label used for the title of web pages and added a default favicon and the possibility to override it.

This commit is contained in:
Gaetan Delannay 2012-09-20 09:37:33 +02:00
parent d799398de1
commit 6367924b05
7 changed files with 10 additions and 4 deletions

View file

@ -124,7 +124,11 @@ class ZopeInstaller:
zopeName = name
if hasattr(zopeFolder.aq_base, zopeName): continue
f = file(j(root, name))
if ext in gen.File.imageExts:
if zopeName == 'favicon.ico':
if not hasattr(self.app, zopeName):
# Copy it at the root. Else, IE won't notice it.
manage_addImage(self.app, zopeName, f)
elif ext in gen.File.imageExts:
manage_addImage(zopeFolder, zopeName, f)
elif ext == '.pt':
manage_addPageTemplate(zopeFolder,zopeName,'',f.read())