Submitted by : Jaap Noordzij at: 2004-03-11T03:11:38+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Zope error with upgradeAll under Plone 2.0 RC6 with Zope 2.7.0 (Py 2.3.3)

First it worked (I think) but after adding a "show_subtopics" it fails. Removing the property does not solve the issue.

Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.ZWiki.Admin, line 131, in upgradeAll
  Module Products.ZWiki.OutlineSupport, line 181, in updateWikiOutline
  Module Products.ZWiki.OutlineSupport, line 194, in wikiOutlineFromParents
AttributeError: tuple object has no attribute sort


comments:

Additional --Jaap Noordzij, Thu, 11 Mar 2004 03:44:10 -0800 reply
Must have something to do with me trying to add a "show_subtopics" property, I think, because I have a few other Zwikis on the same Plone / Zope combination and they have no problems with an "upgradeAll"

it sounds like --SimonMichael, Sat, 13 Mar 2004 01:45:35 -0800 reply
we are getting a tuple from python 2.3 or zope 2.7 where we used to get a list.

When you visit SOMEPAGE/pages , does it show mybrains or PageBrains? ?

also --SimonMichael, Sat, 13 Mar 2004 01:52:17 -0800 reply
You might try changing line 192 to:

            parents = list(p.parents)

OK --Jaap Noordzij, Tue, 16 Mar 2004 02:51:23 -0800 reply
It shows "mybrains". I made the suggested change but the problem remains.

Solved --Jaap Noordzij, Tue, 16 Mar 2004 03:00:12 -0800 reply
I made a mistake. I changed 192 to list(p.parents[:]?) instead of list(p.parents)[:]?. The latter change solved the problem. Thanks Simon, I leave it up to you to close the issue when you made the change formal.

thanks, fixed for 0.29 --SimonMichael, Sat, 20 Mar 2004 01:49:52 -0800 reply
Status: open => closed