X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fweb%2Fviews%2Flist_books.py;h=90e74436b9d4d3173641d4def0fd38217088638e;hb=bb78bdc67ee559bd77f7e06e95902930c5410471;hp=c9af4b4b42d72de5fec40927dff8828ad01f89fe;hpb=961cab22b2f5da852df95ca0155dc4207acaecd9;p=m_librarian.git diff --git a/m_librarian/web/views/list_books.py b/m_librarian/web/views/list_books.py index c9af4b4..90e7443 100644 --- a/m_librarian/web/views/list_books.py +++ b/m_librarian/web/views/list_books.py @@ -35,12 +35,12 @@ VFFSL=valueFromFrameOrSearchList VFSL=valueFromSearchList VFN=valueForName currentTime=time.time -__CHEETAH_version__ = '3.1.0' -__CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1) -__CHEETAH_genTime__ = 1528755606.297172 -__CHEETAH_genTimestamp__ = 'Tue Jun 12 01:20:06 2018' +__CHEETAH_version__ = '3.2.6' +__CHEETAH_versionTuple__ = (3, 2, 6, 'final', 0) +__CHEETAH_genTime__ = 1671291191.270126 +__CHEETAH_genTimestamp__ = 'Sat Dec 17 18:33:11 2022' __CHEETAH_src__ = 'list_books.tmpl' -__CHEETAH_srcLastModified__ = 'Tue Jun 12 01:20:03 2018' +__CHEETAH_srcLastModified__ = 'Sat Dec 17 18:33:09 2022' __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -113,62 +113,70 @@ class list_books(layout): ''') write(u''' ''') - series = None columns1 = VFFSL(SL,"len",False)(VFFSL(SL,"columns",True))+1 - for author in VFFSL(SL,"sorted",False)(VFFSL(SL,"books_by_author",True)): # generated from line 21, col 3 + for anum, author in VFFSL(SL,"enumerate",False)(VFFSL(SL,"sorted",False)(VFFSL(SL,"books_by_author",True))): # generated from line 20, col 3 + series = None + snum = 0 books = VFFSL(SL,"books_by_author",True)[VFFSL(SL,"author",True)] - for book in VFFSL(SL,"books",True): # generated from line 23, col 5 - if VFFSL(SL,"book.series",True) != VFFSL(SL,"series",True): # generated from line 24, col 5 + for book in VFFSL(SL,"books",True): # generated from line 24, col 5 + if VFFSL(SL,"book.series",True) != VFFSL(SL,"series",True): # generated from line 25, col 5 series = VFFSL(SL,"book.series",True) + snum += 1 write(u'''
\u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438!
''') @@ -236,7 +244,7 @@ if not hasattr(list_books, '_initCheetahAttributes'): # CHEETAH was developed by Tavis Rudd and Mike Orr # with code, advice and input from many other volunteers. -# For more information visit http://cheetahtemplate.org/ +# For more information visit https://cheetahtemplate.org/ ################################################## ## if run from command line: