]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/web/views/index.py
Feat(web): Search authors
[m_librarian.git] / m_librarian / web / views / index.py
index 9456a5e35ef23c8f8d01c2eabe1e253a5fe1417b..1e4c4dfab5355e963beecf790c5df0c45e26b565 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
 
 
@@ -25,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
@@ -34,10 +36,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__ = 1522958547.022135
+__CHEETAH_genTimestamp__ = 'Thu Apr  5 23:02:27 2018'
 __CHEETAH_src__ = 'index.tmpl'
-__CHEETAH_srcLastModified__ = 'Sun Apr  1 22:08:25 2018'
+__CHEETAH_srcLastModified__ = 'Thu Apr  5 23:02:23 2018'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -70,7 +72,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 +87,12 @@ 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>
-
-<p><a href="/quit">Quit</a></p>
+''')
+        _v = VFFSL(SL,"search_authors_form",False)() # u'$search_authors_form()' on line 8, col 1
+        if _v is not None: write(_filter(_v, rawExpr=u'$search_authors_form()')) # from line 8, col 1.
+        write(u'''
 ''')
         
         ########################################
@@ -141,7 +144,7 @@ class index(layout):
 
     _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__
 
-    title = 'Index'
+    title = 'Поиск'
 
     _mainCheetahMethod_for_index = 'writeBody'