deep-learning-indaba / Baobab

Baobab is an open source multi-tenant web application designed to facilitate the application and selection process for large scale meetings within the machine learning and artificial intelligence communities globally. Supported by the Deep Learning Indaba
http://www.deeplearningindaba.com
Apache License 2.0
55 stars 34 forks source link

Invitation Letter Generator #328

Closed jaderabbit closed 5 years ago

jaderabbit commented 5 years ago

This module needs to generate Invitation Letters for a particular user, as per the Registration spec

Create a api/app/invitationletter/generator.py module with a generate method that takes the following inputs:

It must do the following:

  1. Fetch the word template from google cloud storage. Here is an example of a template

  2. Replace the tags in the invitation template, with the correct fields . You can use the following package: https://pypi.org/project/docx-mailmerge/

  3. Convert the word doc to a PDF

  4. Email the the user the newly generated invitation letter

  5. Return true if email was successful

Definition of Done This task is done when:

jaderabbit commented 5 years ago

@avishkar58 @KaleabTessera Can you do a sense check here plz

avishkar58 commented 5 years ago

Looks good to me! Only thing I'd add is that the letter should be converted/saved as PDF before emailing it.

avishkar58 commented 5 years ago

Note: Please also add whether or not the person is presenting a poster to the fields.

jaderabbit commented 5 years ago

Note: Please also add whether or not the person is presenting a poster to the fields.

Does this need to go on the invitation letter? :P

avishkar58 commented 5 years ago

Yes, apparently this is useful for people using the letter to seek funding from their university or company etc :)

On Wed, 26 Jun 2019, 18:36 Jade Abbott, notifications@github.com wrote:

Note: Please also add whether or not the person is presenting a poster to the fields.

Does this need to go on the invitation letter? :P

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/deep-learning-indaba/Baobab/issues/328?email_source=notifications&email_token=ABFV53GYGGUUQVK2LKT2WBDP4OSI3A5CNFSM4H2PFKO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUIWNA#issuecomment-505973556, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFV53F3RY3VKVTAAN2TGM3P4OSI3ANCNFSM4H2PFKOQ .

jaderabbit commented 5 years ago

I figure, we could just have %BRINGING_POSTER% on the templates, and then mailmerge that with text if they're bringing one. I'm trying to avoid another permutation of invitation templates :P

avishkar58 commented 5 years ago

Yes definitely, much better than doubling the templates :)

On Wed, 26 Jun 2019, 19:03 Jade Abbott, notifications@github.com wrote:

I figure, we could just have %BRINGING_POSTER% on the templates, and then mailmerge that with text if they're bringing one. I'm trying to avoid another permutation of invitation templates :P

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/deep-learning-indaba/Baobab/issues/328?email_source=notifications&email_token=ABFV53GZQMCYBPTXWCD6RTLP4OVNLA5CNFSM4H2PFKO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYULDLA#issuecomment-505983404, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFV53HPSVIEJKPLBC3ST6TP4OVNLANCNFSM4H2PFKOQ .