@@ -426,6 +426,14 @@ def edit_song_arrangement(
426426 duration: (int) lenght in full seconds.
427427 note: (str) more detailed explanation text.
428428
429+ Not useable Keywords due to bug
430+ #TODO@bensteUEM: only some parameters can be applied
431+ # CT support case 147728
432+ # https://github.com/bensteUEM/ChurchToolsAPI/issues/144
433+ source_name: (int|str) id of the source as defined in masterdata.
434+ Alternatively also accepts shortname.
435+ source_reference: (str) source reference number.
436+
429437 Returns:
430438 if changes were applied successful
431439 """
@@ -434,16 +442,35 @@ def edit_song_arrangement(
434442 existing_arrangement = self .get_song_arrangement (
435443 song_id = song_id , arrangement_id = arrangement_id
436444 )
437-
438- if isinstance (kwargs .get ("source_id" ), int ):
439- source_id = kwargs .get ("source_id" )
440- elif isinstance (kwargs .get ("source_id" ), str ):
441- source_id = self .lookup_song_source_as_id (shortname = kwargs .get ("source_id" ))
445+ # TODO@bensteUEM: only some parameters can be applied
446+ # CT support case 147728
447+ # https://github.com/bensteUEM/ChurchToolsAPI/issues/144
448+ """
449+ if isinstance(kwargs.get("source_name"), int):
450+ source_name = kwargs.get("source_name")
451+ elif isinstance(kwargs.get("source_name"), str):
452+ source_name = self.lookup_song_source_as_id(
453+ shortname=kwargs.get("source_name")
454+ )
442455 else:
443- source_id = self .lookup_song_source_as_id (
456+ source_name = self.lookup_song_source_as_id(
444457 shortname=existing_arrangement["sourceName"]
445458 )
446-
459+ """
460+ if kwargs .get ("source_name" ) or kwargs .get ("source_reference" ):
461+ logger .warning (
462+ "CT support cas 147728 source_name and reference are "
463+ "not updateabel via REST API"
464+ )
465+ # TODO@bensteUEM: only some parameters can be applied
466+ # CT support case 147728
467+ # https://github.com/bensteUEM/ChurchToolsAPI/issues/144
468+ """
469+ "sourceName": source_name,
470+ "sourceReference": kwargs.get(
471+ "source_reference", existing_arrangement["sourceReference"]
472+ ),
473+ """
447474 data = {
448475 "name" : kwargs .get ("name" , existing_arrangement ["name" ]),
449476 "key" : kwargs .get ("key" , existing_arrangement ["key" ]),
0 commit comments