From 460fad92127410b2d45611b7307ec679a6d9a9f9 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sun, 19 Aug 2012 18:07:21 +0200 Subject: [PATCH] provide book overview that lists all sections with descriptions --- compound/book/browser.py | 7 +++++++ compound/book/configure.zcml | 8 ++++++++ compound/book/loops_book_de.dmp | 2 +- compound/book/view_macros.pt | 11 +++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/compound/book/browser.py b/compound/book/browser.py index f454941..87a14d1 100644 --- a/compound/book/browser.py +++ b/compound/book/browser.py @@ -51,6 +51,13 @@ class Base(object): return self.nodeView.getViewForTarget(p) +class BookOverview(Base, ConceptView): + + @Lazy + def macro(self): + return book_template.macros['book'] + + class SectionView(Base, ConceptView): @Lazy diff --git a/compound/book/configure.zcml b/compound/book/configure.zcml index 98d0b40..9c5a628 100644 --- a/compound/book/configure.zcml +++ b/compound/book/configure.zcml @@ -17,6 +17,14 @@ + + + + +