[Zope-Checkins]
SVN: Zope/branches/philikon-aq/lib/python/Products/Five/
Fixed test failures in forms.txt.
Hanno Schlichting
plone at hannosch.info
Sun Jul 29 11:11:41 EDT 2007
Log message for revision 78461:
Fixed test failures in forms.txt.
Changed:
U Zope/branches/philikon-aq/lib/python/Products/Five/browser/adding.py
U Zope/branches/philikon-aq/lib/python/Products/Five/form/tests/forms.txt
-=-
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/adding.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/Products/Five/browser/adding.py 2007-07-29 14:57:38 UTC (rev 78460)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/adding.py 2007-07-29 15:11:41 UTC (rev 78461)
@@ -35,6 +35,7 @@
from zope.app.container.constraints import checkFactory, checkObject
from zope.app.publisher.browser.menu import getMenu
+from Acquisition import aq_inner
from zExceptions import BadRequest
from OFS.SimpleItem import SimpleItem
@@ -205,6 +206,16 @@
menu_id = "add_content"
+ def __getParent(self):
+ # This class is based on Acquisition and accesses self.context
+ # We need to call aq_inner on it, or we get a funky aq_chain
+ return getattr(self, '_parent', aq_inner(self.context))
+
+ def __setParent(self, parent):
+ self._parent = parent
+
+ __parent__ = property(__getParent, __setParent)
+
class ObjectManagerNameChooser:
"""A name chooser for a Zope object manager.
"""
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/form/tests/forms.txt
===================================================================
--- Zope/branches/philikon-aq/lib/python/Products/Five/form/tests/forms.txt 2007-07-29 14:57:38 UTC (rev 78460)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/form/tests/forms.txt 2007-07-29 15:11:41 UTC (rev 78461)
@@ -24,7 +24,6 @@
>>> from Products.Five.testbrowser import Browser
>>> browser = Browser()
- >>> browser.handleErrors = False
>>> browser.addHeader('Accept-Language', 'en-US')
Add forms
More information about the Zope-Checkins
mailing list