MCPcopy Index your code
hub / github.com/diffgram/diffgram / email_existing_user

Method email_existing_user

default/methods/share/share.py:398–418  ·  view source on GitHub ↗
(
        self,
        role_name,
        note
    )

Source from the content-addressed store, hash-verified

396 self.user_to_modify.projects.remove(self.project)
397
398 def email_existing_user(
399 self,
400 role_name,
401 note
402 ):
403
404 if self.notify is False:
405 return
406
407 subject = f"Added to project {self.project_string_id}"
408
409 message = f"You have been added to: {self.project_string_id}"
410 message += f" as a: {str(role_name)} \n"
411
412 message += f"Access the project here: {settings.URL_BASE}project/{self.project_string_id } \n"
413
414
415 message += f"Added by {str(self.user_who_made_request.email)} \n"
416 message += f"With personal note of: \n{str(note)}"
417
418 communicate_via_email.send(self.user_to_modify.email, subject, message)
419
420 def invite_user(
421 self,

Callers 1

newMethod · 0.95

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected