gallery.py: Factor out page extraction to CGIGalleryServer.page_from_query
authorW. Trevor King <wking@tremily.us>
Mon, 9 Dec 2013 03:49:32 +0000 (19:49 -0800)
committerW. Trevor King <wking@tremily.us>
Mon, 9 Dec 2013 05:07:04 +0000 (21:07 -0800)
commit746e3cd0180152bc3d2b7d9157485a1a8aa57f74
tree6c1c1498de80529466bd95a763fe080c226028ba
parent3eb8dd17b509190ac47fd297e46678706f4c4a6e
gallery.py: Factor out page extraction to CGIGalleryServer.page_from_query

This reduces duplicated code.
posts/gallery/gallery.py