X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=m_librarian%2Fweb%2Fviews%2Fsearch_authors_form.py;h=b5229bcc507325c0d4cba0aaa330fd8262d576ce;hb=aed8183b14e5236c9a8899ca6ae8a99bfe35d8e2;hp=1e304437900683b865de2300769518fc75273c40;hpb=fbaf358a8c297202b8c0926d6a3f383298b8e3e2;p=m_librarian.git diff --git a/m_librarian/web/views/search_authors_form.py b/m_librarian/web/views/search_authors_form.py index 1e30443..b5229bc 100644 --- a/m_librarian/web/views/search_authors_form.py +++ b/m_librarian/web/views/search_authors_form.py @@ -25,6 +25,7 @@ from Cheetah.CacheRegion import CacheRegion import Cheetah.Filters as Filters import Cheetah.ErrorCatchers as ErrorCatchers from Cheetah.compat import unicode +from bottle import html_escape ################################################## ## MODULE CONSTANTS @@ -34,10 +35,10 @@ VFN=valueForName currentTime=time.time __CHEETAH_version__ = '3.1.0' __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1) -__CHEETAH_genTime__ = 1522958937.217914 -__CHEETAH_genTimestamp__ = 'Thu Apr 5 23:08:57 2018' +__CHEETAH_genTime__ = 1527353789.984589 +__CHEETAH_genTimestamp__ = 'Sat May 26 19:56:29 2018' __CHEETAH_src__ = 'search_authors_form.tmpl' -__CHEETAH_srcLastModified__ = 'Thu Apr 5 23:08:55 2018' +__CHEETAH_srcLastModified__ = 'Sat May 26 19:56:28 2018' __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -66,6 +67,62 @@ class search_authors_form(Template): self._initCheetahInstance(**cheetahKWArgs) + def search_type_checked(self, value, **KWS): + + + + ## CHEETAH: generated from #def $search_type_checked($value) at line 3, 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 + if not trans: + trans = DummyTransaction() + _dummyTrans = True + else: _dummyTrans = False + write = trans.response().write + SL = self._CHEETAH__searchList + _filter = self._CHEETAH__currentFilter + + ######################################## + ## START - generated method body + + if VFFSL(SL,"getVar",False)('search_type', '') == VFFSL(SL,"value",True): # generated from line 4, col 1 + write(u'''checked''') + + ######################################## + ## END - generated method body + + return _dummyTrans and trans.response().getvalue() or "" + + + def case_sensitive_checked(self, **KWS): + + + + ## CHEETAH: generated from #def $case_sensitive_checked at line 8, 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 + if not trans: + trans = DummyTransaction() + _dummyTrans = True + else: _dummyTrans = False + write = trans.response().write + SL = self._CHEETAH__searchList + _filter = self._CHEETAH__currentFilter + + ######################################## + ## START - generated method body + + if VFFSL(SL,"getVar",False)('case_sensitive', None): # generated from line 9, col 1 + write(u'''checked''') + + ######################################## + ## END - generated method body + + return _dummyTrans and trans.response().getvalue() or "" + + def respond(self, trans=None): @@ -85,19 +142,38 @@ class search_authors_form(Template): ## START - generated method body write(u'''
''')