1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-09-13 16:43:16 +10:00
Commit Graph

65 Commits

Author SHA1 Message Date
d0d6be6659
resizer: Avoid exposing full path, remove double extension 2018-04-18 12:48:33 +10:00
4919e2be7a
server: Fix default values, parameter handling. 2018-04-18 12:42:07 +10:00
ae66e0b3eb
server: Split up photo handler.
Provide separate endpoints for the thumbnail, photo data and the photo
page.
2018-04-18 12:31:23 +10:00
3b78ea028c
photo: Add relative URI retrieval 2018-04-18 12:31:05 +10:00
2183eb7f07
photo: Don't assume mtime is 0. 2018-04-18 11:44:17 +10:00
7d9c6feace
gallery: Don't assume mtime is 0 2018-04-18 11:43:31 +10:00
0df12ba7b9
metadata: Don't assume mtime of 0.
If we get a timestamp in 1969 or earlier, all hell breaks loose!
2018-04-18 11:41:36 +10:00
3cf45ad5d6
templates: Use {% raw %} when dumping JSON 2018-04-17 14:16:50 +10:00
2cbe4f6cf9
templates: Tweak index URIs 2018-04-17 13:51:15 +10:00
90d012d17d
templates: Tweak display text/escaping 2018-04-17 13:46:23 +10:00
44cb0910a9
templates: Do not print None if no annotation. 2018-04-17 13:43:32 +10:00
743ecff492
photo: Fix metadata retrieval 2018-04-17 13:41:13 +10:00
a1f6182be1
metadata: Fix typo de-referencing node. 2018-04-17 13:40:04 +10:00
ed6020b196
server: Render photo page. 2018-04-17 12:23:44 +10:00
ec506fcafe
photo: Add description property 2018-04-17 12:23:32 +10:00
b9aea4096d
gallery: Add first/last properties. 2018-04-17 12:23:15 +10:00
27ff44645f
templates: Tweak photo page template 2018-04-17 12:23:00 +10:00
c56dd6a238
server: Cast values to integers/floats where needed 2018-04-17 11:58:19 +10:00
b8e865a234
resizer: Silence error message. 2018-04-17 11:57:48 +10:00
a2aaa3d04e
resizer: Fix storage of cached result. 2018-04-17 11:54:29 +10:00
ecca823763
photo: Fix aspect ratio calculations, round result. 2018-04-17 11:54:07 +10:00
d4f55bb4af
templates: Call server for thumbnail
Rather than hard-coding the URI to the thumbnail (generated beforehand)
as with the old CGI.
2018-04-17 11:53:20 +10:00
103f35501e
server: Render gallery page. 2018-04-17 11:12:54 +10:00
6827847d4c
photo: Add some infrastructure for gallery page. 2018-04-17 11:12:38 +10:00
38dc36f360
resizer: Add image metadata retrieval. 2018-04-17 11:11:46 +10:00
aec529e676
templates: Fix gallery title. 2018-04-17 11:11:33 +10:00
82815f740e
gallery: Ignore files with no . in name. 2018-04-17 10:53:58 +10:00
e8ec20cfed
server: Fix static URI paths.
Seems `StaticFileHandler` is *very* fussy regarding paths, and will
refuse to serve up files unless things are *exactly* right.
2018-04-17 10:51:49 +10:00
b452019f41
templates: Tweak URIs, use raw text for descriptions. 2018-04-17 10:27:48 +10:00
8d4ca42a89
server: Add rendering of front page. 2018-04-11 19:52:15 +10:00
5f9d80b639
photo: Add prev/next metadata. 2018-04-11 19:28:59 +10:00
9aaa4f758b
gallery: Add prev/next 2018-04-11 19:19:24 +10:00
74f2e64ea7
server: Implement display of images.
Still need to handle templates.
2018-04-09 19:44:41 +10:00
09f0d7c6e2
resizer: Use a thread pool.
Seems we can't pass some objects between parent and subprocess, so it's
just easier to put up with the GIL and use a thread pool.
2018-04-09 19:44:04 +10:00
d243e7e2e4
server: Initial server implementation 2018-04-09 19:24:51 +10:00
e661ea101f
gallery: Make Gallery a Mapping object. 2018-04-09 19:15:55 +10:00
2fc5a65e9f
gallery: Sort contents 2018-04-09 19:13:09 +10:00
b3d1a4d0d6
gallery: Initialise logger 2018-04-09 19:08:05 +10:00
194073ee4b
metadata: Pass through log argument 2018-04-09 19:07:48 +10:00
bd68ec956d
cache: Derive off Mapping 2018-04-09 19:07:16 +10:00
a08899ea3a
gallery: Pass logger to resizer pool. 2018-04-09 17:39:52 +10:00
7ee894b832
resizer: Add logging 2018-04-09 17:39:26 +10:00
1228b113b2
gallery: Pass through logger instances to MetaCache. 2018-04-09 17:26:58 +10:00
36f776f124
cache: Add logging 2018-04-09 17:24:28 +10:00
3520dca18d
photo: Expose services from gallery, fix error on annotation. 2018-04-09 17:21:09 +10:00
8b0bad0171
gallery: Expose filesystem cache from collection. 2018-04-09 17:20:49 +10:00
fa7ba2d852
resizer: Fix whitespace. 2018-04-09 17:09:03 +10:00
e0d08e0f77
gallery: Fix enumeration of content 2018-04-09 17:07:55 +10:00
cc78c391f4
gallery: Implement enumeration. 2018-04-09 17:04:14 +10:00
6c0b6a854a
metadata: _fetch Method is private not public. 2018-04-09 17:03:15 +10:00