[Zope3-checkins] CVS: Products3/NewsSite - newssite.py:1.5
Axel Bringenberg
A.Bringenberg@srz-berlin.de
Wed, 26 Mar 2003 12:48:35 -0500
Update of /cvs-repository/Products3/NewsSite
In directory cvs.zope.org:/tmp/cvs-serv13842
Modified Files:
newssite.py
Log Message:
- changed for return list with url
=== Products3/NewsSite/newssite.py 1.4 => 1.5 ===
--- Products3/NewsSite/newssite.py:1.4 Wed Mar 26 12:18:16 2003
+++ Products3/NewsSite/newssite.py Wed Mar 26 12:48:34 2003
@@ -19,9 +19,9 @@
from persistence.dict import PersistentDict
from zope.publisher.browser import BrowserView
-from zope.component import getAdapter
from zope.app.interfaces.annotation import IAnnotations
from zope.app.interfaces.dublincore import ICMFDublinCore
+from zope.component import getAdapter, getView
from zope.app.content.folder import Folder
from interfaces import INewsSite
@@ -50,6 +50,8 @@
for x in list ]
list.sort(lambda x,y: cmp(x[1], y[1]))
list = [ x[0] for x in list]
+ list = [ {'obj':x, 'absolute_url':getView(x, 'absolute_url', self.request)()}
+ for x in list]
return list
#