Commit 924e722f authored by Jérome Perrin's avatar Jérome Perrin

adds an error_log in the site



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13259 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 628a76ed
......@@ -18,6 +18,7 @@ import Globals
import AccessControl
from Globals import package_home
from Products.SiteErrorLog.SiteErrorLog import manage_addErrorLog
from ZPublisher import BeforeTraverse
from AccessControl import ClassSecurityInfo
from Products.CMFDefault.Portal import CMFSite, PortalGenerator
......@@ -1177,7 +1178,10 @@ class ERP5Generator(PortalGenerator):
addMessageCatalog('default', 'ERP5 Localized Messages', ('en',))
addMessageCatalog('erp5_ui', 'ERP5 Localized Interface', ('en',))
addMessageCatalog('erp5_content', 'ERP5 Localized Content', ('en',))
# Add an error_log
if 'error_log' not in p.objectIds():
manage_addErrorLog(p)
def setupMembersFolder(self, p):
"""
......
......@@ -203,6 +203,9 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
self.failUnless(('Dummy Jump Action', {}) in
translation_service._translated['ui'])
def test_error_log(self):
self.failUnless('error_log' in self.portal.objectIds())
if __name__ == '__main__':
framework()
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment