Submitted by : at: 2005-02-28T14:24:40+00:00 (16 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

In, when page is found from hidden form variable via call to pageWithNameOrId, aquisition context is being lost so that the page object can no longer find portal_catalog.

I debugged this far enough to find that when the BLATHER below is added:

if page: page = unquote(page)
if page is None:
  p = self                    # changing this page
elif self.pageWithNameOrId(page):
  p = self.pageWithNameOrId(page) # changing another page
  BLATHER('p from pageWithNameOrId', getattr(self, 'portal_catalog',None), getattr(p.folder(),'portal_catalog',None))

the first getattr finds the portal_catalog; the second doesn't.

Workaround: removing the "page" hidden variable from editform to prevent the lookup by name.

property change --Mon, 07 Mar 2005 14:34:17 -0800 reply

seems fixed, maybe "reopened" by spambots --betabug, Fri, 23 Feb 2007 11:49:04 +0000 reply

Status: open => closed

Can't really reproduce this, works on plone 2.5.2 and zwiki 0.58