]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/web/views/index.py
Feat(web:books): Поиск по названиям книг
[m_librarian.git] / m_librarian / web / views / index.py
index 9456a5e35ef23c8f8d01c2eabe1e253a5fe1417b..e066e53903a503b04f4006f865c9eadcd5b204c9 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
 
 
@@ -25,6 +26,8 @@ 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
+from views.search_books_form import search_books_form
 
 ##################################################
 ## MODULE CONSTANTS
@@ -34,10 +37,10 @@ VFN=valueForName
 currentTime=time.time
 __CHEETAH_version__ = '3.1.0'
 __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1522609706.987582
-__CHEETAH_genTimestamp__ = 'Sun Apr  1 22:08:26 2018'
+__CHEETAH_genTime__ = 1527354191.441549
+__CHEETAH_genTimestamp__ = 'Sat May 26 20:03:11 2018'
 __CHEETAH_src__ = 'index.tmpl'
-__CHEETAH_srcLastModified__ = 'Sun Apr  1 22:08:25 2018'
+__CHEETAH_srcLastModified__ = 'Sat May 26 20:03:09 2018'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -70,7 +73,7 @@ class index(layout):
 
 
 
-        ## CHEETAH: generated from #def body at line 3, col 1.
+        ## CHEETAH: generated from #def body at line 4, col 1.
         trans = KWS.get("trans")
         if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
             trans = self.transaction # is None unless self.awake() was called
@@ -85,11 +88,19 @@ class index(layout):
         ########################################
         ## START - generated method body
         
-        write(u'''<h1>Index</h1>
+        write(u'''<h1>\u041f\u043e\u0438\u0441\u043a \u0430\u0432\u0442\u043e\u0440\u043e\u0432</h1>
 
-<p>Hello, World!</p>
+''')
+        _v = VFFSL(SL,"search_authors_form",False)(searchList=VFFSL(SL,"searchList",True)) # u'$search_authors_form(searchList=$searchList)' on line 8, col 1
+        if _v is not None: write(_filter(_v, rawExpr=u'$search_authors_form(searchList=$searchList)')) # from line 8, col 1.
+        write(u'''
+
+<h1>\u041f\u043e\u0438\u0441\u043a \u043a\u043d\u0438\u0433</h1>
 
-<p><a href="/quit">Quit</a></p>
+''')
+        _v = VFFSL(SL,"search_books_form",False)(searchList=VFFSL(SL,"searchList",True)) # u'$search_books_form(searchList=$searchList)' on line 13, col 1
+        if _v is not None: write(_filter(_v, rawExpr=u'$search_books_form(searchList=$searchList)')) # from line 13, col 1.
+        write(u'''
 ''')
         
         ########################################
@@ -141,7 +152,7 @@ class index(layout):
 
     _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__
 
-    title = 'Index'
+    title = 'Поиск'
 
     _mainCheetahMethod_for_index = 'writeBody'