From 5061ea1770978ac77dbf1ef8caf41c59531ced4d Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Wed, 8 Jun 2016 22:18:35 +0200 Subject: [PATCH] typo fixing (issue #2181) --- openslides/agenda/apps.py | 4 ++-- openslides/assignments/apps.py | 2 +- openslides/core/apps.py | 2 +- openslides/core/config.py | 2 +- openslides/motions/apps.py | 4 ++-- openslides/users/apps.py | 2 +- tests/integration/core/test_views.py | 2 +- tests/old/config/test_config.py | 12 ++++++------ 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/openslides/agenda/apps.py b/openslides/agenda/apps.py index 6cd114997..3afd71758 100644 --- a/openslides/agenda/apps.py +++ b/openslides/agenda/apps.py @@ -23,8 +23,8 @@ class AgendaAppConfig(AppConfig): listen_to_related_object_post_save) from .views import ItemViewSet - # Define config varialbes - config.update_config_varialbes(get_config_variables()) + # Define config variables + config.update_config_variables(get_config_variables()) # Connect signals. post_save.connect( diff --git a/openslides/assignments/apps.py b/openslides/assignments/apps.py index 7228e4f89..b58449ede 100644 --- a/openslides/assignments/apps.py +++ b/openslides/assignments/apps.py @@ -20,7 +20,7 @@ class AssignmentsAppConfig(AppConfig): from .views import AssignmentViewSet, AssignmentPollViewSet # Define config variables - config.update_config_varialbes(get_config_variables()) + config.update_config_variables(get_config_variables()) # Register viewsets. router.register(self.get_model('Assignment').get_collection_string(), AssignmentViewSet) diff --git a/openslides/core/apps.py b/openslides/core/apps.py index 569c3d72c..2f30af10a 100644 --- a/openslides/core/apps.py +++ b/openslides/core/apps.py @@ -31,7 +31,7 @@ class CoreAppConfig(AppConfig): ) # Define config variables - config.update_config_varialbes(get_config_variables()) + config.update_config_variables(get_config_variables()) # Connect signals. post_permission_creation.connect( diff --git a/openslides/core/config.py b/openslides/core/config.py index af2585a64..939a92fd3 100644 --- a/openslides/core/config.py +++ b/openslides/core/config.py @@ -93,7 +93,7 @@ class ConfigHandler: if 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. diff --git a/openslides/motions/apps.py b/openslides/motions/apps.py index 38ad8e34f..228698ef7 100644 --- a/openslides/motions/apps.py +++ b/openslides/motions/apps.py @@ -21,8 +21,8 @@ class MotionsAppConfig(AppConfig): from .signals import create_builtin_workflows from .views import CategoryViewSet, MotionViewSet, MotionPollViewSet, WorkflowViewSet - # Define config varialbes - config.update_config_varialbes(get_config_variables()) + # Define config variables + config.update_config_variables(get_config_variables()) # Connect signals. post_migrate.connect(create_builtin_workflows, dispatch_uid='motion_create_builtin_workflows') diff --git a/openslides/users/apps.py b/openslides/users/apps.py index bbd2663e3..5dd738a7f 100644 --- a/openslides/users/apps.py +++ b/openslides/users/apps.py @@ -22,7 +22,7 @@ class UsersAppConfig(AppConfig): from .views import GroupViewSet, UserViewSet # Define config variables - config.update_config_varialbes(get_config_variables()) + config.update_config_variables(get_config_variables()) # Connect signals. post_permission_creation.connect( diff --git a/tests/integration/core/test_views.py b/tests/integration/core/test_views.py index 31143ca9a..2e9ddeb32 100644 --- a/tests/integration/core/test_views.py +++ b/tests/integration/core/test_views.py @@ -82,7 +82,7 @@ class ConfigViewSet(TestCase): Tests requests to deal with config variables. """ 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): # Reset the config variables diff --git a/tests/old/config/test_config.py b/tests/old/config/test_config.py index ed4c11a53..b04d0350a 100644 --- a/tests/old/config/test_config.py +++ b/tests/old/config/test_config.py @@ -14,11 +14,11 @@ config = ConfigHandler() @patch('openslides.core.config.config', config) class HandleConfigTest(TestCase): def setUp(self): - config.update_config_varialbes(set_grouped_config_view()) - config.update_config_varialbes(set_simple_config_view()) - config.update_config_varialbes(set_simple_config_view_multiple_vars()) - config.update_config_varialbes(set_simple_config_collection_disabled_view()) - config.update_config_varialbes(set_simple_config_collection_with_callback()) + config.update_config_variables(set_grouped_config_view()) + config.update_config_variables(set_simple_config_view()) + config.update_config_variables(set_simple_config_view_multiple_vars()) + config.update_config_variables(set_simple_config_collection_disabled_view()) + config.update_config_variables(set_simple_config_collection_with_callback()) def tearDown(self): # Reset the config variables @@ -45,7 +45,7 @@ class HandleConfigTest(TestCase): with self.assertRaisesMessage( ConfigError, '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): self.assertRaises(TypeError, ConfigVariable)