Broken 'What's New' on Zope.org?
Is it just me or is the 'What's New' Feature on Zope.org been broken for months? I get.. System Unavailable This site is currently experiencing technical difficulties. Please contact the site administrator for moreinformation. For additional technical information, please refer to the HTML source for this page. Thank you for your patience. Error type: TypeError Error value: unhashable type And in the code.. Traceback (innermost last): File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/dc/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/dc/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: newitems.html) File /usr/local/dc/zope_soft/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: results="SiteIndex(REQUEST=REQUEST)") File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 493, in renderwb (Object: results) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 741, in sort_sequence (Object: results) TypeError: (see above) Just me? Or is this a 'known' issue? It was/is my favorite feature of Zope.org. Thanks, J
This is a longstanding bug. Send complaints to zope-web@zope.org ----- Original Message ----- From: <jatwood@bwanazulia.com> To: <zope@zope.org> Sent: Friday, September 15, 2000 12:31 PM Subject: [Zope] Broken 'What's New' on Zope.org?
Is it just me or is the 'What's New' Feature on Zope.org been broken for months? I get..
System Unavailable
This site is currently experiencing technical difficulties. Please contact the site administrator for moreinformation. For additional technical information, please refer to the HTML source for this page. Thank you for your patience.
Error type: TypeError Error value: unhashable type
And in the code..
Traceback (innermost last): File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/dc/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/dc/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: newitems.html) File /usr/local/dc/zope_soft/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: results="SiteIndex(REQUEST=REQUEST)") File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 493, in renderwb (Object: results) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 741, in sort_sequence (Object: results) TypeError: (see above)
Just me? Or is this a 'known' issue? It was/is my favorite feature of Zope.org.
Thanks, J
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Ok.. I kind of thought so I just had not heard anyone else talk about it so I thought that it was something I had done. Thanks though. J
From: "Chris McDonough" <chrism@digicool.com> Date: Fri, 15 Sep 2000 13:00:07 -0400 To: <jatwood@bwanazulia.com>, <zope@zope.org> Subject: Re: [Zope] Broken 'What's New' on Zope.org?
This is a longstanding bug.
Send complaints to zope-web@zope.org
----- Original Message ----- From: <jatwood@bwanazulia.com> To: <zope@zope.org> Sent: Friday, September 15, 2000 12:31 PM Subject: [Zope] Broken 'What's New' on Zope.org?
Is it just me or is the 'What's New' Feature on Zope.org been broken for months? I get..
System Unavailable
This site is currently experiencing technical difficulties. Please contact the site administrator for moreinformation. For additional technical information, please refer to the HTML source for this page. Thank you for your patience.
Error type: TypeError Error value: unhashable type
And in the code..
Traceback (innermost last): File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/dc/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/dc/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: newitems.html) File /usr/local/dc/zope_soft/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: results="SiteIndex(REQUEST=REQUEST)") File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 493, in renderwb (Object: results) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 741, in sort_sequence (Object: results) TypeError: (see above)
Just me? Or is this a 'known' issue? It was/is my favorite feature of Zope.org.
Thanks, J
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Chris McDonough wrote:
This is a longstanding bug.
Send complaints to zope-web@zope.org
If anyone fixes it, please let us all know... I'm looking for just the same functionality for a site here adn I was hoping to do a view_source for the answer :-S cheers, Chris
I looked at the source once and tried to figure it out. Mostly it looks like they keep it all in a catalog (duh) and set a cookie as to your last visit. When login and go to the 'What's New' page they check the cookie, compare it against the items recently added and show you the list. I guess it would only require the site catalog and the users logging in. They might also write the 'last visit' into the ZODB. It is also something I have wanted to do for awhile but have not really built that many user based sites. Let me know what you come up with or if you want further description. I am also going to try (someday) to build a simple version into ZUBB (as you probably are going to into Squishdot). Hope it helps... J
From: Chris Withers <chrisw@nipltd.com> Organization: New Information Paradigms Date: Fri, 15 Sep 2000 18:18:39 +0100 To: Chris McDonough <chrism@digicool.com> Cc: jatwood@bwanazulia.com, zope@zope.org Subject: Re: [Zope] Broken 'What's New' on Zope.org?
Chris McDonough wrote:
This is a longstanding bug.
Send complaints to zope-web@zope.org
If anyone fixes it, please let us all know...
I'm looking for just the same functionality for a site here adn I was hoping to do a view_source for the answer :-S
cheers,
Chris
Hi Chris ! Chris Withers wrote:
Chris McDonough wrote:
This is a longstanding bug.
Send complaints to zope-web@zope.org
If anyone fixes it, please let us all know...
I'm looking for just the same functionality for a site here adn I was hoping to do a view_source for the answer :-S
Shouldn't the following do ? <dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50> Show stuff in Catalog here. </dtml-with> At least that is what works perfectly for the ZDP site: http://zdp.zope.org/new Regards, Maik -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.com
Maik Roeder wrote:
<dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50> Show stuff in Catalog here. </dtml-with>
That doesn't take advantage of the Catalog's lazy searching, AFAIK, and on a site with a lot of content that could be bad. cheers, Chris
On Wed, 20 Sep 2000 14:51:01 +0100, Chris Withers <chrisw@nipltd.com> wrote:
Maik Roeder wrote:
<dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50> Show stuff in Catalog here. </dtml-with>
That doesn't take advantage of the Catalog's lazy searching, AFAIK, and on a site with a lot of content that could be bad.
Lazy searching is not an issue - that definitely happens. The catalog always uses its cached metadata for searching and sorting. A more interesting question is over sorting-by-index. Whether or not this happens depends on the relative size of two sets: a. The number of *different* *values* for the sort attribute over the whole catalog content. b. The number of matches found. If number(b)>number(a) then sorting-by-index works well. This might happen for example if you are sorting by "author name", where there are more matches than there are authors. This is efficient since the catalog precomputes the matches grouped by author name, and it only needs to sort the groups. If number(a)<number(b) then there is no sorting-by-index. In this case there are more groups than matches (ie many groups are empty) and it is more efficient to sort matches. This is probably the case for an index of bobobase_modification_time Toby Dickenson tdickenson@geminidataloggers.com
Toby Dickenson wrote:
Maik Roeder wrote:
<dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50> Show stuff in Catalog here. </dtml-with>
<snip good points> But doesn't Catalog() return all objects in the Catalog? Doesn't all the meta-data for those objects have to be loaded into memory ratehr than just the 50 that are actually needed? cheers, Chris
participants (5)
-
Chris McDonough -
Chris Withers -
J. Atwood -
Maik Roeder -
Toby Dickenson