|
|
@@ -23,7 +23,7 @@ except ImportError:
|
|
|
from django.utils.translation import ugettext_lazy as _t
|
|
|
|
|
|
from desktop.lib.conf import Config, UnspecifiedConfigSection, ConfigSection,\
|
|
|
- coerce_json_dict, coerce_string
|
|
|
+ coerce_json_dict, coerce_string, coerce_bool
|
|
|
|
|
|
|
|
|
def get_interpreters(user=None):
|
|
|
@@ -40,6 +40,14 @@ def get_interpreters(user=None):
|
|
|
for i in interpreters
|
|
|
]
|
|
|
|
|
|
+
|
|
|
+SHOW_NOTEBOOKS = Config(
|
|
|
+ key="show_notebooks",
|
|
|
+ help=_t("Show the notebook menu or not"),
|
|
|
+ type=coerce_bool,
|
|
|
+ default=True
|
|
|
+)
|
|
|
+
|
|
|
INTERPRETERS = UnspecifiedConfigSection(
|
|
|
"interpreters",
|
|
|
help="One entry for each type of snippet. The first 5 will appear in the wheel.",
|
|
|
@@ -102,6 +110,7 @@ GITHUB_CLIENT_SECRET = Config(
|
|
|
default=""
|
|
|
)
|
|
|
|
|
|
+
|
|
|
def _default_interpreters():
|
|
|
INTERPRETERS.set_for_testing(OrderedDict((
|
|
|
('hive', {
|