Commit 7956d3e2 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added warning in case webmaster is not defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8532280c
...@@ -36,7 +36,7 @@ from Acquisition import ImplicitAcquisitionWrapper, aq_base, aq_inner ...@@ -36,7 +36,7 @@ from Acquisition import ImplicitAcquisitionWrapper, aq_base, aq_inner
from Products.ERP5Type.Base import TempBase from Products.ERP5Type.Base import TempBase
from Globals import get_request from Globals import get_request
from zLOG import LOG from zLOG import LOG, WARNING
from Products.ERP5Type.Cache import getReadOnlyTransactionCache from Products.ERP5Type.Cache import getReadOnlyTransactionCache
...@@ -176,7 +176,10 @@ class WebSection(Domain): ...@@ -176,7 +176,10 @@ class WebSection(Domain):
if user is not None: if user is not None:
old_manager = getSecurityManager() old_manager = getSecurityManager()
newSecurityManager(get_request(), user) newSecurityManager(get_request(), user)
LOG('Lookup', 0, str(name)) else:
LOG('WebSection _aq_dynamic', WARNING, 'No user defined for %s.'
'This will prevent accessing object through their permanent URL' % self.getWebmaster())
#LOG('Lookup', 0, str(name))
document = self.getDocumentValue(name=name, portal=portal) document = self.getDocumentValue(name=name, portal=portal)
request[CACHE_KEY][name] = document request[CACHE_KEY][name] = document
if user is not None: if user is not None:
......
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