These methods of the Article class return postings on
the context of the article, not the site.
This means methods like absolute_url don't work.
Here's a patch:
--- Article.py.original Sun Jun 15 14:59:53 2003
+++ Article.py Sun Jun 15 15:00:45 2003
@@ -62,7 +62,7 @@
else:
previd = rlist[currpos - 1]
obj = self.data[previd]
- return (obj.__of__(self),)
+ return (obj.__of__(self.aq_parent),)
security.declareProtected(View, 'next_item')
def next_item(self):
@@ -81,7 +81,7 @@
else:
nextid = rlist[currpos + 1]
obj = self.data[nextid]
- return (obj.__of__(self),)
+ return (obj.__of__(self.aq_parent),)
security.declareProtected(View, 'showSummary')
def showSummary(self):
Not committed to CVS yet as it needs tests.
Logged In: YES
user_id=24723
This is actually fixed in cvs now, but needs tests.