From 9b64194342f8b3d541978f5c2901186d563cbfd8 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 24 Oct 2014 12:44:52 -0700 Subject: [PATCH 01/14] bump version to 0.6.4 --- CHANGES.rst | 4 ++++ README.rst | 6 +++--- setup.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 25585716..2959ae20 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,7 @@ +pywb 0.6.4 changelist +~~~~~~~~~~~~~~~~~~~~~ + + pywb 0.6.3 changelist ~~~~~~~~~~~~~~~~~~~~~ diff --git a/README.rst b/README.rst index de003280..8e8fe103 100644 --- a/README.rst +++ b/README.rst @@ -1,10 +1,10 @@ -PyWb 0.6.3 +PyWb 0.6.4 ========== .. image:: https://travis-ci.org/ikreymer/pywb.png?branch=develop :target: https://travis-ci.org/ikreymer/pywb -.. image:: https://coveralls.io/repos/ikreymer/pywb/badge.png?branch=master - :target: https://coveralls.io/r/ikreymer/pywb?branch=master +.. image:: https://coveralls.io/repos/ikreymer/pywb/badge.png?branch=develop + :target: https://coveralls.io/r/ikreymer/pywb?branch=develop .. image:: https://img.shields.io/gratipay/ikreymer.svg :target: https://www.gratipay.com/ikreymer/ diff --git a/setup.py b/setup.py index 317929fe..12225bee 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ class PyTest(TestCommand): setup( name='pywb', - version='0.6.3', + version='0.6.4', url='https://github.com/ikreymer/pywb', author='Ilya Kreymer', author_email='ikreymer@gmail.com', From 67e94d13f4f51ba34a61441bf5b0a795967dd1aa Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 24 Oct 2014 12:45:41 -0700 Subject: [PATCH 02/14] handlers/wombat: pass in mod to wombat, ability to customize modifier for embeds --- pywb/static/wombat.js | 4 ++-- pywb/webapp/handlers.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pywb/static/wombat.js b/pywb/static/wombat.js index bc361250..0e6d8327 100644 --- a/pywb/static/wombat.js +++ b/pywb/static/wombat.js @@ -708,11 +708,11 @@ WB_wombat_init = (function() { } //============================================ - function wombat_init(replay_prefix, capture_date, orig_scheme, orig_host, timestamp) { + function wombat_init(replay_prefix, capture_date, orig_scheme, orig_host, timestamp, mod) { wb_replay_prefix = replay_prefix; if (wb_replay_prefix) { - wb_replay_date_prefix = replay_prefix + capture_date + "/"; + wb_replay_date_prefix = replay_prefix + capture_date + mod + "/"; if (capture_date.length > 0) { wb_capture_date_part = "/" + capture_date + "/"; diff --git a/pywb/webapp/handlers.py b/pywb/webapp/handlers.py index b32cc2ad..2c7962cc 100644 --- a/pywb/webapp/handlers.py +++ b/pywb/webapp/handlers.py @@ -74,8 +74,8 @@ class SearchPageWbUrlHandler(WbUrlHandler): return self.handle_request(wbrequest) - def get_top_frame_params(self, wbrequest): - embed_url = wbrequest.wb_url.to_str(mod='') + def get_top_frame_params(self, wbrequest, mod=''): + embed_url = wbrequest.wb_url.to_str(mod=mod) if wbrequest.wb_url.timestamp: timestamp = wbrequest.wb_url.timestamp From 8441b54192dda2f4004d1d4ed0bab35ca009a072 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 24 Oct 2014 14:13:59 -0700 Subject: [PATCH 03/14] head_insert: add mod to wombat --- pywb/ui/head_insert.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pywb/ui/head_insert.html b/pywb/ui/head_insert.html index 8b4b69cb..4e53a5d0 100644 --- a/pywb/ui/head_insert.html +++ b/pywb/ui/head_insert.html @@ -7,7 +7,8 @@ "{{ cdx['timestamp'] if include_ts else ''}}", "{{ urlsplit.scheme }}", "{{ urlsplit.netloc }}", - "{{ cdx.timestamp | format_ts('%s') }}"); + "{{ cdx.timestamp | format_ts('%s') }}", + "{{ wbrequest.wb_url.mod }}"); {% endif %}