[Checkins] SVN: z3ext.layout/trunk/ Fixed missing NotFount in @@pagelet
Nikolay Kim
fafhrd at datacom.kz
Thu Oct 9 15:15:09 EDT 2008
Log message for revision 91937:
Fixed missing NotFount in @@pagelet
Changed:
U z3ext.layout/trunk/CHANGES.txt
U z3ext.layout/trunk/src/z3ext/layout/pagelet.py
-=-
Modified: z3ext.layout/trunk/CHANGES.txt
===================================================================
--- z3ext.layout/trunk/CHANGES.txt 2008-10-09 18:51:34 UTC (rev 91936)
+++ z3ext.layout/trunk/CHANGES.txt 2008-10-09 19:15:08 UTC (rev 91937)
@@ -2,6 +2,12 @@
CHANGES
=======
+1.5.1 (2008-10-??)
+------------------
+
+- Fixed missing NotFount in @@pagelet
+
+
1.5.0 (2008-10-06)
------------------
Modified: z3ext.layout/trunk/src/z3ext/layout/pagelet.py
===================================================================
--- z3ext.layout/trunk/src/z3ext/layout/pagelet.py 2008-10-09 18:51:34 UTC (rev 91936)
+++ z3ext.layout/trunk/src/z3ext/layout/pagelet.py 2008-10-09 19:15:08 UTC (rev 91937)
@@ -15,9 +15,11 @@
$Id$
"""
+import logging, sys
from zope import interface, component
from zope.component import queryMultiAdapter
from zope.publisher.browser import BrowserPage
+from zope.publisher.interfaces import NotFound
from zope.publisher.interfaces.browser import IBrowserPublisher
from zope.tales.expressions import SimpleModuleImporter
from zope.pagetemplate.interfaces import IPageTemplate
@@ -105,8 +107,9 @@
def publishTraverse(self, request, name):
try:
return self[name]
- except KeyError:
- pass
+ except Exception, err:
+ log = logging.getLogger('z3ext.content')
+ log.debug(err)
raise NotFound(self.context, name, request)
More information about the Checkins
mailing list