Skip to content

Commit

Permalink
Patch release 0.9.4 (#80)
Browse files Browse the repository at this point in the history
* Bump version number for patch release

* Minor adjustments to keep linter happy

* Updated frozen pip packages list
  • Loading branch information
delsim authored and GibbsConsulting committed Dec 1, 2018
1 parent c2cba96 commit affccd8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion django_plotly_dash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
SOFTWARE.
'''

__version__ = "0.9.3"
__version__ = "0.9.4"

from .dash_wrapper import DjangoDash
4 changes: 2 additions & 2 deletions django_plotly_dash/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def login_required(view_function, **kwargs):
try:
dash_view_decorator = locals()[dash_view_decorator_name]
except:
mod_name, func_name = dash_view_decorator_name.rsplit('.',1)
mod_name, func_name = dash_view_decorator_name.rsplit('.', 1)
if len(mod_name):
mod = importlib.import_module(mod_name)
dash_view_decorator = getattr(mod, func_name)
Expand All @@ -49,6 +49,6 @@ def process_view_function(view_function, **kwargs):
'Process view function and wrap according to settings'

if dash_view_decorator:
return dash_view_decorator(view_function,**kwargs)
return dash_view_decorator(view_function, **kwargs)

return view_function
8 changes: 4 additions & 4 deletions django_plotly_dash/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def adjust_response(self, response):

try:
c1 = self._replace(response.content,
self.header_placeholder,
self.embedded_holder.css)
self.header_placeholder,
self.embedded_holder.css)

response.content = self._replace(c1,
self.footer_placeholder,
"\n".join([self.embedded_holder.config,
self.footer_placeholder,
"\n".join([self.embedded_holder.config,
self.embedded_holder.scripts]))
except AttributeError:
# Catch the "FileResponse instance has no `content` attribute" error when serving media files in the Django development server.
Expand Down
1 change: 1 addition & 0 deletions django_plotly_dash/templatetags/plotly_dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,6 @@ def plotly_class(name=None, slug=None, da=None, prefix=None, postfix=None, templ

@register.simple_tag(takes_context=True)
def site_root_url(context):
'Provide the root url of the demo site'
current_site_url = get_current_site(context.request)
return current_site_url.domain
2 changes: 1 addition & 1 deletion docs/template_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ suitable for inclusion in a base template. Neither tag has
any arguments.

Note that if you are using any functionality that needs the use of these tags, then the associated middleware
should be added in ``settings.py`` as mentioned in the :ref:`installation <installation>` section.
should be added in ``settings.py``

.. code-block:: python
Expand Down
14 changes: 12 additions & 2 deletions frozen_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
aioredis==1.1.0
alabaster==0.7.12
argh==0.26.2
asgiref==2.3.2
astroid==2.0.4
Expand All @@ -7,6 +8,7 @@ atomicwrites==1.2.1
attrs==18.2.0
autobahn==18.8.2
Automat==0.7.0
Babel==2.6.0
certifi==2018.8.24
channels==2.1.3
channels-redis==2.3.0
Expand All @@ -15,23 +17,25 @@ click==6.7
constantly==15.1.0
coverage==4.5.1
daphne==2.2.2
dash==0.26.3
dash==0.28.5
dash-core-components==0.28.1
dash-html-components==0.11.0
dash-renderer==0.13.2
decorator==4.3.0
Django==2.1.1
django-bootstrap4==0.0.7
-e git+https://github.com/delsim/django-plotly-dash.git@f33f6007c47c966cd5fee618b9d8fbffea36b9ba#egg=django_plotly_dash
-e git+https://github.com/delsim/django-plotly-dash.git@1a6a184eac871a0a675fa971fe4c10c3dac195d8#egg=django_plotly_dash
django-redis==4.9.0
docopt==0.6.2
docutils==0.14
dpd-components==0.1.0
Flask==1.0.2
Flask-Compress==1.4.0
grip==4.5.2
hiredis==0.2.0
hyperlink==18.0.0
idna==2.7
imagesize==1.1.0
incremental==17.5.0
ipython-genutils==0.2.0
isort==4.3.4
Expand All @@ -48,6 +52,7 @@ more-itertools==4.3.0
msgpack==0.5.6
nbformat==4.4.0
numpy==1.15.1
packaging==18.0
pandas==0.23.4
path-and-address==2.0.1
pathlib2==2.3.2
Expand All @@ -61,6 +66,7 @@ py==1.6.0
Pygments==2.2.0
PyHamcrest==1.9.0
pylint==2.1.1
pyparsing==2.3.0
pytest==3.7.4
pytest-cov==2.5.1
pytest-django==3.4.2
Expand All @@ -72,7 +78,11 @@ requests==2.19.1
requests-toolbelt==0.8.0
retrying==1.3.3
six==1.11.0
snowballstemmer==1.2.1
Sphinx==1.8.1
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.2
sphinxcontrib-websupport==1.1.0
tornado==5.1
tqdm==4.25.0
traitlets==4.3.2
Expand Down

0 comments on commit affccd8

Please sign in to comment.