Loading management/data/shared.py +1 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ class DataFactory(object): return entity def create_component(self, name: str, secret: str = None, component_type: str = 'executor', ip_addr: str = '0.0.0.0', notes: str = None) -> Component: ip_addr: str = '127.0.0.1', notes: str = None) -> Component: secret = secret or f"{name}_secret" notes = notes or f"Component {name} of type {type}" return self.__create_entity(Component, name=name, secret=secret, Loading portal/rest/components/components.py +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ class ComponentList(Resource): data = rest_helpers.parse_request_data( component_schema, action='create', resource='component' ) new_component = create_component(data) new_component = create_component(**data) return component_schema.dump(new_component)[0], 201 Loading portal/rest/courses/courses.py +1 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ class CourseList(Resource): raise ForbiddenError(uid=client.id) data = rest_helpers.parse_request_data(course_schema, resource='course', action='create') new_course = create_course(data) new_course = create_course(**data) return course_schema.dump(new_course)[0], 201 Loading portal/rest/groups/groups.py +1 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ class GroupsList(Resource): group_schema, action='create', resource='group' ) new_group = create_group(course, data) new_group = create_group(course, **data) return group_schema.dump(new_group)[0], 201 Loading portal/rest/roles/roles.py +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ class RoleList(Resource): data = rest_helpers.parse_request_data( role_schema, action='create', resource='role' ) new_role = create_role(course, data) new_role = create_role(course, **data) return role_schema.dump(new_role)[0], 201 Loading Loading
management/data/shared.py +1 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ class DataFactory(object): return entity def create_component(self, name: str, secret: str = None, component_type: str = 'executor', ip_addr: str = '0.0.0.0', notes: str = None) -> Component: ip_addr: str = '127.0.0.1', notes: str = None) -> Component: secret = secret or f"{name}_secret" notes = notes or f"Component {name} of type {type}" return self.__create_entity(Component, name=name, secret=secret, Loading
portal/rest/components/components.py +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ class ComponentList(Resource): data = rest_helpers.parse_request_data( component_schema, action='create', resource='component' ) new_component = create_component(data) new_component = create_component(**data) return component_schema.dump(new_component)[0], 201 Loading
portal/rest/courses/courses.py +1 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ class CourseList(Resource): raise ForbiddenError(uid=client.id) data = rest_helpers.parse_request_data(course_schema, resource='course', action='create') new_course = create_course(data) new_course = create_course(**data) return course_schema.dump(new_course)[0], 201 Loading
portal/rest/groups/groups.py +1 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ class GroupsList(Resource): group_schema, action='create', resource='group' ) new_group = create_group(course, data) new_group = create_group(course, **data) return group_schema.dump(new_group)[0], 201 Loading
portal/rest/roles/roles.py +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ class RoleList(Resource): data = rest_helpers.parse_request_data( role_schema, action='create', resource='role' ) new_role = create_role(course, data) new_role = create_role(course, **data) return role_schema.dump(new_role)[0], 201 Loading