Update Developer Guide - DSS Messaging Channel Send()

LucOBrien
LucOBrien Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 23 ✭✭✭✭

Specifically looking at this page: https://developer.dataiku.com/latest/api-reference/python/messaging-channels.html#dataikuapi.dss.messaging_channel.DSSMailMessagingChannel.send

image.png

The “append” method for a list only allows for one argument, whereas the script above is trying to provide 3.

My team and I recommend adding in a set of simple square brackets around the arguments within the append method for the subsequent steps in the “send” method to work correctly (found in github).

image.png

Doing this simple change allowed us to run the sample script from the guide after instantiating all needed variables.

Happy to answer any questions or provide context!

2
2 votes

New · Last Updated

Comments

  • FlorentD
    FlorentD Dataiker, Dataiku DSS Core Designer, Registered, Moderator Posts: 52 Dataiker

    Hi @LucOBrien,

    This thread just came into my knowledge, sorry for taking so long to answer you.

    Indeed, the docstring is buggy; we will fix it as soon as possible.

    Have a good day

Setup Info
    Tags
      Help me…