From 821dd4ebc1d8edff798b057230f0a5f3bfdf4883 Mon Sep 17 00:00:00 2001 From: Michael Lissner Date: Tue, 7 Apr 2015 10:38:37 -0700 Subject: [PATCH] Tweaks to make XSLT's peculiarities work better... --- settings/05-private.py.sample | 3 +-- uploads/DocketXML.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/settings/05-private.py.sample b/settings/05-private.py.sample index ea241d4..760e1cd 100644 --- a/settings/05-private.py.sample +++ b/settings/05-private.py.sample @@ -9,8 +9,7 @@ DATABASE_PASSWORD = 'recapthelaw' # See issue #59 for details on this variable. In a production environment it # should be unset. In a DEV environment, it is used to put uploaded items in # a separate bucket from legitimate items by giving them a custom namespace. -# Note that this value must be quoted with both double and single quotes. -DEV_BUCKET_PREFIX = "''" +DEV_BUCKET_PREFIX = "" SERVER_HOSTNAME = 'http://localhost:8000' SERVER_BASEDIR = 'recap/' UPLOAD_AUTHKEY = '' diff --git a/uploads/DocketXML.py b/uploads/DocketXML.py index 4b2168b..404ea46 100644 --- a/uploads/DocketXML.py +++ b/uploads/DocketXML.py @@ -345,7 +345,7 @@ def to_html(self): html = unicode( docket_xsl_transform( xmldoc, - DEV_BUCKET_PREFIX=settings.DEV_BUCKET_PREFIX, + DEV_BUCKET_PREFIX="'%s'" % settings.DEV_BUCKET_PREFIX, ) ).encode("utf-8")