X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=m_librarian%2Fweb%2Fviews%2Flist_authors.py;h=41fab346bcf06aa5142f2055d3b1b095f7e4e61b;hb=4322346ad35079252feef6a3d49065bf245a9dfd;hp=5c70204c7f390cbc60e2050012a34ca32f875588;hpb=c36e520339e5c0043fa6861f43ff5915999eb980;p=m_librarian.git diff --git a/m_librarian/web/views/list_authors.py b/m_librarian/web/views/list_authors.py index 5c70204..41fab34 100644 --- a/m_librarian/web/views/list_authors.py +++ b/m_librarian/web/views/list_authors.py @@ -25,6 +25,8 @@ from Cheetah.CacheRegion import CacheRegion import Cheetah.Filters as Filters import Cheetah.ErrorCatchers as ErrorCatchers from Cheetah.compat import unicode +import cgi +from m_librarian.translations import translations from views.layout import layout from views.search_authors_form import search_authors_form @@ -36,10 +38,10 @@ VFN=valueForName currentTime=time.time __CHEETAH_version__ = '3.1.0' __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1) -__CHEETAH_genTime__ = 1523134510.111994 -__CHEETAH_genTimestamp__ = 'Sat Apr 7 23:55:10 2018' +__CHEETAH_genTime__ = 1528718535.495412 +__CHEETAH_genTimestamp__ = 'Mon Jun 11 15:02:15 2018' __CHEETAH_src__ = 'list_authors.tmpl' -__CHEETAH_srcLastModified__ = 'Sat Apr 7 23:55:07 2018' +__CHEETAH_srcLastModified__ = 'Mon Jun 11 15:02:07 2018' __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -72,7 +74,7 @@ class list_authors(layout): - ## CHEETAH: generated from #def body at line 4, col 1. + ## CHEETAH: generated from #def body at line 6, 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 @@ -89,33 +91,59 @@ class list_authors(layout): write(u'''
''') + if False: + _(VFFSL(SL,"column",True)) + _v = VFN(VFFSL(SL,"cgi",True),"escape",False)(VFFSL(SL,"_",False)(VFFSL(SL,"column",True))) # u'$cgi.escape($_($column))' on line 18, col 36 + if _v is not None: write(_filter(_v, rawExpr=u'$cgi.escape($_($column))')) # from line 18, col 36. + write(u''' | ''') - for author in VFFSL(SL,"authors",True): # generated from line 13, col 3 + write(u'''
''') - _v = VFFSL(SL,"author.fullname",True) # u'$author.fullname' on line 15, col 48 - if _v is not None: write(_filter(_v, rawExpr=u'$author.fullname')) # from line 15, col 48. - write(u''' | -+ ''') + _v = VFN(VFFSL(SL,"cgi",True),"escape",False)(unicode(VFFSL(SL,"getattr",False)(VFFSL(SL,"author",True), VFFSL(SL,"column",True)) or '')) # u"$cgi.escape(unicode($getattr($author, $column) or ''))" on line 30, col 5 + if _v is not None: write(_filter(_v, rawExpr=u"$cgi.escape(unicode($getattr($author, $column) or ''))")) # from line 30, col 5. + write(u''' + | +''') + write(u''' ''') write(u'''
\u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430!
''')