+import os
+
from sqlobject.sqlbuilder import CONCAT
-from bottle import cheetah_view, redirect, request, route
+from bottle import cheetah_view, redirect, request, route, static_file
-from m_librarian.db import Author, AuthorBook, Book
+from m_librarian.db import Author, Book
from m_librarian.search import search_authors
orderBy=['series', 'ser_no', 'title'],
)
}
+
+
+@route('/static/<filename:path>')
+def send_static(filename):
+ return static_file(
+ filename, root=os.path.join(
+ os.path.dirname(__file__),
+ 'static'
+ )
+ )
--- /dev/null
+body {
+ color: #000000;
+ font-family: sans-serif;
+ text-decoration: none;
+ margin: 8pt;
+}
+
+h1, h2, h3, h4, h5, h6 { font-weight: bold; }
+h1 { font-size: 150%; }
+h2 { font-size: 140%; }
+h3 { font-size: 130%; }
+h4 { font-size: 120%; }
+h5 { font-size: 110%; }
+h6 { font-size: 100%; }
+
+p {
+ text-indent: 2em;
+ margin: 0;
+}
+
+p.head {
+ margin-top: 1ex;
+}
+
+table {
+ border: 1px solid black;
+}
+
+td, th {
+ border: 1px solid black;
+ text-align: left;
+}
+
+td.numeric {
+ text-align: right;
+}
currentTime=time.time
__CHEETAH_version__ = '3.1.0'
__CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1523136060.80551
-__CHEETAH_genTimestamp__ = 'Sun Apr 8 00:21:00 2018'
+__CHEETAH_genTime__ = 1523141375.719046
+__CHEETAH_genTimestamp__ = 'Sun Apr 8 01:49:35 2018'
__CHEETAH_src__ = 'books_by_author.tmpl'
-__CHEETAH_srcLastModified__ = 'Sun Apr 8 00:20:58 2018'
+__CHEETAH_srcLastModified__ = 'Sun Apr 8 01:49:05 2018'
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
</tr>
''')
write(u''' <tr>
- <td style="text-align: right">''')
- _v = VFFSL(SL,"book.ser_no",True) # u'$book.ser_no' on line 24, col 35
- if _v is not None: write(_filter(_v, rawExpr=u'$book.ser_no')) # from line 24, col 35.
+ <td class="numeric">''')
+ _v = VFFSL(SL,"book.ser_no",True) # u'$book.ser_no' on line 24, col 25
+ if _v is not None: write(_filter(_v, rawExpr=u'$book.ser_no')) # from line 24, col 25.
write(u'''</td>
<td><a href="/download/''')
_v = VFFSL(SL,"book.id",True) # u'$book.id' on line 25, col 28
#end if
#end if
<tr>
- <td style="text-align: right">$book.ser_no</td>
+ <td class="numeric">$book.ser_no</td>
<td><a href="/download/$book.id/">$book.title</a></td>
</tr>
#end for
currentTime=time.time
__CHEETAH_version__ = '3.1.0'
__CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1522960530.67886
-__CHEETAH_genTimestamp__ = 'Thu Apr 5 23:35:30 2018'
+__CHEETAH_genTime__ = 1523141278.03866
+__CHEETAH_genTimestamp__ = 'Sun Apr 8 01:47:58 2018'
__CHEETAH_src__ = 'layout.tmpl'
-__CHEETAH_srcLastModified__ = 'Thu Apr 5 23:35:06 2018'
+__CHEETAH_srcLastModified__ = 'Sun Apr 8 01:47:39 2018'
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
<link rev="made" href="mailto:phd@phdru.name">
<meta name="generator" content="CheetahTemplate">
<meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
+<link rel="stylesheet" type="text/css" media="screen" href="/static/style.css">
</head>
<body bgcolor="#FFFFFF" text="#000000"
link="#0000bb" vlink="#551a8b" alink="#ff0000">
</tr>
</table>
''')
- _v = VFFSL(SL,"body",True) # u'$body' on line 24, col 1
- if _v is not None: write(_filter(_v, rawExpr=u'$body')) # from line 24, col 1.
+ _v = VFFSL(SL,"body",True) # u'$body' on line 25, col 1
+ if _v is not None: write(_filter(_v, rawExpr=u'$body')) # from line 25, col 1.
write(u'''
</body>
</html>
<link rev="made" href="mailto:phd@phdru.name">
<meta name="generator" content="CheetahTemplate">
<meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
+<link rel="stylesheet" type="text/css" media="screen" href="/static/style.css">
</head>
<body bgcolor="#FFFFFF" text="#000000"
link="#0000bb" vlink="#551a8b" alink="#ff0000">