From 712752 at bugs.launchpad.net Thu Feb 3 16:00:32 2011
From: 712752 at bugs.launchpad.net (Robert Casties)
Date: Thu, 03 Feb 2011 21:00:32 -0000
Subject: [zope2-tracker] [Bug 712752] [NEW] Zope crashes on editing or
saving PageTemplate
References: <20110203210032.27343.91668.malonedeb@soybean.canonical.com>
Message-ID: <20110203210032.27343.91668.malonedeb@soybean.canonical.com>
Public bug reported:
When I try to view the following PageTemplate in the ZMI editor the whole Zope process crashes (without any message).
The template in question uses recursive METAL calls. The template renders fine even though viewing in ZMI crashes Zope. Viewing in ZMI worked fine at least in Zope 2.10.
** Affects: zope2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/712752
Title:
Zope crashes on editing or saving PageTemplate
From 712752 at bugs.launchpad.net Thu Feb 3 16:06:03 2011
From: 712752 at bugs.launchpad.net (Robert Casties)
Date: Thu, 03 Feb 2011 21:06:03 -0000
Subject: [zope2-tracker] [Bug 712752] Re: Zope crashes on editing or saving
PageTemplate
References: <20110203210032.27343.91668.malonedeb@soybean.canonical.com>
Message-ID: <20110203210603.13902.31320.malone@wampee.canonical.com>
I have to add that the PageTemplate has to have the id "main_template".
The example code could be simpler, I just wanted to show that it is a legitimate use of recursion.
I think the problem is that the checker for the ZMI display has no recursion depth checking. Rendering the template has no problem because the recursion is limited.
Whatever I put in a template, Zope shouldn't crash showing it to me...
--
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/712752
Title:
Zope crashes on editing or saving PageTemplate
From 712752 at bugs.launchpad.net Thu Feb 3 16:10:35 2011
From: 712752 at bugs.launchpad.net (Robert Casties)
Date: Thu, 03 Feb 2011 21:10:35 -0000
Subject: [zope2-tracker] [Bug 712752] Re: Zope crashes on editing or saving
PageTemplate
References: <20110203210032.27343.91668.malonedeb@soybean.canonical.com>
Message-ID: <20110203211036.13902.2633.malone@wampee.canonical.com>
I checked the crash on Zope 2.12.1, 2.12.7 and 2.13.2 on Python 2.6.1,
2.6.5 and 2.7.1 on Mac OSX 10.5 and 10.6 on x86.
--
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/712752
Title:
Zope crashes on editing or saving PageTemplate
From 719335 at bugs.launchpad.net Tue Feb 15 08:23:27 2011
From: 719335 at bugs.launchpad.net (Michael Howitz)
Date: Tue, 15 Feb 2011 13:23:27 -0000
Subject: [zope2-tracker] [Bug 719335] [NEW] unicode calls __str__ for
acquisition wrapped objects
References: <20110215132327.9726.79658.malonedeb@wampee.canonical.com>
Message-ID: <20110215132327.9726.79658.malonedeb@wampee.canonical.com>
Public bug reported:
unicode() calls the __unicode__ method of the object
but unicode() calls __str__
See the following bin/zopectl debug session:
$ bin/zinstance debug
Starting debugger (the name "app" is bound to the top-level Zope object)
>>> import OFS.SimpleItem
>>> class A(OFS.SimpleItem.SimpleItem):
... def __str__(self): return '__str__ called'
... def __unicode__(self): return '__unicode__ called'
...
>>> a = A()
>>> print unicode(a)
__unicode__ called
>>> print unicode(a.__of__(app))
__str__ called
>>> print type(a.__of__(app))
This happens for Python 2.6 and 2.7 on Zope 2.13.4.
** Affects: acquisition
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Zope 2
Developers, which is the registrant for Acquisition.
https://bugs.launchpad.net/bugs/719335
Title:
unicode calls __str__ for acquisition wrapped objects
From 719335 at bugs.launchpad.net Mon Feb 21 04:48:51 2011
From: 719335 at bugs.launchpad.net (Michael Howitz)
Date: Mon, 21 Feb 2011 09:48:51 -0000
Subject: [zope2-tracker] [Bug 719335] Re: unicode calls __str__ for
acquisition wrapped objects
References: <20110215132327.9726.79658.malonedeb@wampee.canonical.com>
Message-ID: <20110221094851.12440.84120.malone@palladium.canonical.com>
Fix released in 2.13.6.
** Changed in: acquisition
Status: New => Fix Released
--
You received this bug notification because you are a member of Zope 2
Developers, which is the registrant for Acquisition.
https://bugs.launchpad.net/bugs/719335
Title:
unicode calls __str__ for acquisition wrapped objects