]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/web/views/list_authors.py
Feat(web): Preserve values in form
[m_librarian.git] / m_librarian / web / views / list_authors.py
index f38c9c4a436df8134d19faf59f01bb0e212698d3..3c5245a92a31e5bc6b1ca6f0b79265cb211ac15e 100644 (file)
@@ -26,6 +26,7 @@ import Cheetah.Filters as Filters
 import Cheetah.ErrorCatchers as ErrorCatchers
 from Cheetah.compat import unicode
 from views.layout import layout
+from views.search_authors_form import search_authors_form
 
 ##################################################
 ## MODULE CONSTANTS
@@ -35,10 +36,10 @@ VFN=valueForName
 currentTime=time.time
 __CHEETAH_version__ = '3.1.0'
 __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1522957487.491209
-__CHEETAH_genTimestamp__ = 'Thu Apr  5 22:44:47 2018'
+__CHEETAH_genTime__ = 1522961824.042332
+__CHEETAH_genTimestamp__ = 'Thu Apr  5 23:57:04 2018'
 __CHEETAH_src__ = 'list_authors.tmpl'
-__CHEETAH_srcLastModified__ = 'Thu Apr  5 22:42:57 2018'
+__CHEETAH_srcLastModified__ = 'Thu Apr  5 23:54:11 2018'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -86,26 +87,32 @@ class list_authors(layout):
         ########################################
         ## START - generated method body
         
-        write(u'''<h1>''')
-        _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'''<h1>\u041f\u043e\u0438\u0441\u043a \u0430\u0432\u0442\u043e\u0440\u043e\u0432</h1>
+''')
+        _v = VFFSL(SL,"search_authors_form",False)(searchList=VFFSL(SL,"searchList",True)) # u'$search_authors_form(searchList=$searchList)' on line 7, col 1
+        if _v is not None: write(_filter(_v, rawExpr=u'$search_authors_form(searchList=$searchList)')) # from line 7, col 1.
+        write(u'''
+
+<h1>''')
+        _v = VFFSL(SL,"title",True) # u'$title' on line 9, col 5
+        if _v is not None: write(_filter(_v, rawExpr=u'$title')) # from line 9, col 5.
         write(u'''</h1>
 
 ''')
-        if VFFSL(SL,"authors",True): # generated from line 7, col 1
+        if VFFSL(SL,"authors",True): # generated from line 11, col 1
             write(u'''  <table>
 ''')
-            for author in VFFSL(SL,"authors",True): # generated from line 9, col 3
+            for author in VFFSL(SL,"authors",True): # generated from line 13, col 3
                 write(u'''  <tr>
     <td>''')
-                _v = VFFSL(SL,"author.fullname",True) # u'$author.fullname' on line 11, col 9
-                if _v is not None: write(_filter(_v, rawExpr=u'$author.fullname')) # from line 11, col 9.
+                _v = VFFSL(SL,"author.fullname",True) # u'$author.fullname' on line 15, col 9
+                if _v is not None: write(_filter(_v, rawExpr=u'$author.fullname')) # from line 15, col 9.
                 write(u'''</td>
   </tr>
 ''')
             write(u'''  </table>
 ''')
-        else: # generated from line 15, col 1
+        else: # generated from line 19, col 1
             write(u'''  <p>\u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430!</p>
 ''')