From 41c3f360f44b3680c1a3a5ca9defa79a203b811a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 8 Apr 2018 02:04:37 +0300 Subject: [PATCH] Fix(web): Fix author name --- m_librarian/web/views/books_by_author.py | 11 +++++++---- m_librarian/web/views/books_by_author.tmpl | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/m_librarian/web/views/books_by_author.py b/m_librarian/web/views/books_by_author.py index ec269e5..ebb1cc6 100644 --- a/m_librarian/web/views/books_by_author.py +++ b/m_librarian/web/views/books_by_author.py @@ -35,10 +35,10 @@ VFN=valueForName currentTime=time.time __CHEETAH_version__ = '3.1.0' __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1) -__CHEETAH_genTime__ = 1523141375.719046 -__CHEETAH_genTimestamp__ = 'Sun Apr 8 01:49:35 2018' +__CHEETAH_genTime__ = 1523142213.339173 +__CHEETAH_genTimestamp__ = 'Sun Apr 8 02:03:33 2018' __CHEETAH_src__ = 'books_by_author.tmpl' -__CHEETAH_srcLastModified__ = 'Sun Apr 8 01:49:05 2018' +__CHEETAH_srcLastModified__ = 'Sun Apr 8 02:03:31 2018' __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -89,6 +89,9 @@ class books_by_author(layout): write(u'''

''') _v = VFFSL(SL,"title",True) # u'$title' on line 5, col 5 if _v is not None: write(_filter(_v, rawExpr=u'$title')) # from line 5, col 5. + write(u''' ''') + _v = VFFSL(SL,"author.fullname",True) # u'$author.fullname' on line 5, col 12 + if _v is not None: write(_filter(_v, rawExpr=u'$author.fullname')) # from line 5, col 12. write(u'''

''') @@ -181,7 +184,7 @@ class books_by_author(layout): _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__ - title = 'Список книг автора $author.fullname' + title = 'Список книг автора' _mainCheetahMethod_for_books_by_author = 'writeBody' diff --git a/m_librarian/web/views/books_by_author.tmpl b/m_librarian/web/views/books_by_author.tmpl index b8e7c58..240771d 100644 --- a/m_librarian/web/views/books_by_author.tmpl +++ b/m_librarian/web/views/books_by_author.tmpl @@ -1,8 +1,8 @@ #encoding utf-8 #extends views.layout -#attr $title = 'Список книг автора $author.fullname' +#attr $title = 'Список книг автора' #def body -

$title

+

$title $author.fullname

#if $books -- 2.39.5