[Zope-CVS] SVN: zope.webdev/trunk/browser/page Setup proper link to
go to a page on the package overview.
Rocky Burt
rocky at serverzen.com
Tue Jan 31 10:34:24 EST 2006
Log message for revision 41511:
Setup proper link to go to a page on the package overview.
Changed:
U zope.webdev/trunk/browser/page.py
U zope.webdev/trunk/browser/page_package_overview.pt
-=-
Modified: zope.webdev/trunk/browser/page.py
===================================================================
--- zope.webdev/trunk/browser/page.py 2006-01-31 15:33:56 UTC (rev 41510)
+++ zope.webdev/trunk/browser/page.py 2006-01-31 15:34:23 UTC (rev 41511)
@@ -67,9 +67,11 @@
pages = []
for page in self.context.values():
if interfaces.IPage.providedBy(page):
- pages.append(
- {'name': page.name,
- 'for': apidoc.utilities.getPythonPath(page.for_)})
+ pages.append({
+ 'name': page.name,
+ 'for': apidoc.utilities.getPythonPath(page.for_),
+ 'absolute_url': zapi.getView(page, 'absolute_url', self.request)(),
+ })
return pages
Modified: zope.webdev/trunk/browser/page_package_overview.pt
===================================================================
--- zope.webdev/trunk/browser/page_package_overview.pt 2006-01-31 15:33:56 UTC (rev 41510)
+++ zope.webdev/trunk/browser/page_package_overview.pt 2006-01-31 15:34:23 UTC (rev 41511)
@@ -2,7 +2,8 @@
<li tal:repeat="page view/pages">
<div class="name">
<a href=""
- tal:content="page/name">
+ tal:content="page/name"
+ tal:attributes="href page/absolute_url">
index.html
</a>
</div>
More information about the Zope-CVS
mailing list