Merge pull request #2191 from matakuka/issue2181

typo fixing (issue #2181)
This commit is contained in:
Norman Jäckel 2016-06-08 22:56:29 +02:00
commit dbbaeb245c
8 changed files with 15 additions and 15 deletions

View File

@ -23,8 +23,8 @@ class AgendaAppConfig(AppConfig):
listen_to_related_object_post_save) listen_to_related_object_post_save)
from .views import ItemViewSet from .views import ItemViewSet
# Define config varialbes # Define config variables
config.update_config_varialbes(get_config_variables()) config.update_config_variables(get_config_variables())
# Connect signals. # Connect signals.
post_save.connect( post_save.connect(

View File

@ -20,7 +20,7 @@ class AssignmentsAppConfig(AppConfig):
from .views import AssignmentViewSet, AssignmentPollViewSet from .views import AssignmentViewSet, AssignmentPollViewSet
# Define config variables # Define config variables
config.update_config_varialbes(get_config_variables()) config.update_config_variables(get_config_variables())
# Register viewsets. # Register viewsets.
router.register(self.get_model('Assignment').get_collection_string(), AssignmentViewSet) router.register(self.get_model('Assignment').get_collection_string(), AssignmentViewSet)

View File

@ -31,7 +31,7 @@ class CoreAppConfig(AppConfig):
) )
# Define config variables # Define config variables
config.update_config_varialbes(get_config_variables()) config.update_config_variables(get_config_variables())
# Connect signals. # Connect signals.
post_permission_creation.connect( post_permission_creation.connect(

View File

@ -93,7 +93,7 @@ class ConfigHandler:
if config_variable.on_change: if config_variable.on_change:
config_variable.on_change() config_variable.on_change()
def update_config_varialbes(self, items): def update_config_variables(self, items):
""" """
Updates the config_variables dict. Updates the config_variables dict.

View File

@ -21,8 +21,8 @@ class MotionsAppConfig(AppConfig):
from .signals import create_builtin_workflows from .signals import create_builtin_workflows
from .views import CategoryViewSet, MotionViewSet, MotionPollViewSet, WorkflowViewSet from .views import CategoryViewSet, MotionViewSet, MotionPollViewSet, WorkflowViewSet
# Define config varialbes # Define config variables
config.update_config_varialbes(get_config_variables()) config.update_config_variables(get_config_variables())
# Connect signals. # Connect signals.
post_migrate.connect(create_builtin_workflows, dispatch_uid='motion_create_builtin_workflows') post_migrate.connect(create_builtin_workflows, dispatch_uid='motion_create_builtin_workflows')

View File

@ -22,7 +22,7 @@ class UsersAppConfig(AppConfig):
from .views import GroupViewSet, UserViewSet from .views import GroupViewSet, UserViewSet
# Define config variables # Define config variables
config.update_config_varialbes(get_config_variables()) config.update_config_variables(get_config_variables())
# Connect signals. # Connect signals.
post_permission_creation.connect( post_permission_creation.connect(

View File

@ -82,7 +82,7 @@ class ConfigViewSet(TestCase):
Tests requests to deal with config variables. Tests requests to deal with config variables.
""" """
def setUp(self): def setUp(self):
config.update_config_varialbes(set_simple_config_view_integration_config_test()) config.update_config_variables(set_simple_config_view_integration_config_test())
def tearDown(self): def tearDown(self):
# Reset the config variables # Reset the config variables

View File

@ -14,11 +14,11 @@ config = ConfigHandler()
@patch('openslides.core.config.config', config) @patch('openslides.core.config.config', config)
class HandleConfigTest(TestCase): class HandleConfigTest(TestCase):
def setUp(self): def setUp(self):
config.update_config_varialbes(set_grouped_config_view()) config.update_config_variables(set_grouped_config_view())
config.update_config_varialbes(set_simple_config_view()) config.update_config_variables(set_simple_config_view())
config.update_config_varialbes(set_simple_config_view_multiple_vars()) config.update_config_variables(set_simple_config_view_multiple_vars())
config.update_config_varialbes(set_simple_config_collection_disabled_view()) config.update_config_variables(set_simple_config_collection_disabled_view())
config.update_config_varialbes(set_simple_config_collection_with_callback()) config.update_config_variables(set_simple_config_collection_with_callback())
def tearDown(self): def tearDown(self):
# Reset the config variables # Reset the config variables
@ -45,7 +45,7 @@ class HandleConfigTest(TestCase):
with self.assertRaisesMessage( with self.assertRaisesMessage(
ConfigError, ConfigError,
'Too many values for config variable multiple_config_var found.'): 'Too many values for config variable multiple_config_var found.'):
config.update_config_varialbes(set_simple_config_view_multiple_vars()) config.update_config_variables(set_simple_config_view_multiple_vars())
def test_setup_config_var(self): def test_setup_config_var(self):
self.assertRaises(TypeError, ConfigVariable) self.assertRaises(TypeError, ConfigVariable)