[Erp5-report] r12158 - /erp5/trunk/products/ERP5/Document/WebSection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 19 15:05:46 CET 2007


Author: jp
Date: Fri Jan 19 15:05:44 2007
New Revision: 12158

URL: http://svn.erp5.org?rev=12158&view=rev
Log:
Added warning in case webmaster is not defined

Modified:
    erp5/trunk/products/ERP5/Document/WebSection.py

Modified: erp5/trunk/products/ERP5/Document/WebSection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/WebSection.py?rev=12158&r1=12157&r2=12158&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSection.py (original)
+++ erp5/trunk/products/ERP5/Document/WebSection.py Fri Jan 19 15:05:44 2007
@@ -36,7 +36,7 @@
 from Products.ERP5Type.Base import TempBase
 from Globals import get_request
 
-from zLOG import LOG
+from zLOG import LOG, WARNING
 
 from Products.ERP5Type.Cache import getReadOnlyTransactionCache
 
@@ -176,7 +176,10 @@
         if user is not None:
           old_manager = getSecurityManager()
           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)
         request[CACHE_KEY][name] = document
         if user is not None:




More information about the Erp5-report mailing list