Skip to content

Commit

Permalink
Merge pull request #294 from Zsailer/traitlets-5.0
Browse files Browse the repository at this point in the history
add HasTraits to mixin class
  • Loading branch information
blink1073 authored Aug 31, 2020
2 parents 61a5061 + 71f1da4 commit b04d3b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/extension/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from jinja2 import Environment, FileSystemLoader

from traitlets import (
HasTraits,
Unicode,
List,
Dict,
Expand Down Expand Up @@ -82,7 +83,7 @@ def _preparse_for_stopping_flags(Application, argv):
app.exit(0)


class ExtensionAppJinjaMixin:
class ExtensionAppJinjaMixin(HasTraits):
"""Use Jinja templates for HTML templates on top of an ExtensionApp."""

jinja2_options = Dict(
Expand All @@ -93,7 +94,6 @@ class ExtensionAppJinjaMixin:
def _prepare_templates(self):
# Get templates defined in a subclass.
self.initialize_templates()

# Add templates to web app settings if extension has templates.
if len(self.template_paths) > 0:
self.settings.update({
Expand Down

0 comments on commit b04d3b9

Please sign in to comment.