Index
hypha.apply.activity.adapters
¶
ActivityAdapter
¶
Bases: AdapterBase
messages
class-attribute
instance-attribute
¶
messages = {TRANSITION: 'handle_transition', BATCH_TRANSITION: 'handle_batch_transition', NEW_SUBMISSION: gettext('Submitted {source.title_text_display} for {source.page.title}'), EDIT_SUBMISSION: gettext('edited the submission'), APPLICANT_EDIT: gettext('edited the submission'), UPDATE_LEAD: gettext('updated Lead from {old_lead} to {source.lead}'), BATCH_UPDATE_LEAD: gettext('batch updated Lead to {new_lead}'), DETERMINATION_OUTCOME: gettext('sent a determination. Outcome: {determination.clean_outcome}'), BATCH_DETERMINATION_OUTCOME: 'batch_determination', INVITED_TO_PROPOSAL: gettext('Invited to submit a proposal'), REVIEWERS_UPDATED: 'reviewers_updated', BATCH_REVIEWERS_UPDATED: 'batch_reviewers_updated', PARTNERS_UPDATED: 'partners_updated', NEW_REVIEW: gettext('Submitted a review'), OPENED_SEALED: gettext('Opened the submission while still sealed'), SCREENING: 'handle_screening_statuses', REVIEW_OPINION: gettext('{opinion.opinion_display}s with {opinion.review.author}s review of {source}'), DELETE_REVIEW_OPINION: gettext('deleted the opinion for review: {review_opinion.review}'), CREATED_PROJECT: gettext('Created project'), PROJECT_TRANSITION: 'handle_project_transition', UPDATE_PROJECT_TITLE: gettext('updated the project title from {old_title} to {source.title}'), UPDATE_PROJECT_LEAD: gettext('update Lead from {old_lead} to {source.lead}'), SEND_FOR_APPROVAL: gettext('Requested approval'), APPROVE_PAF: 'handle_paf_assignment', APPROVE_PROJECT: gettext('Approved'), REQUEST_PROJECT_CHANGE: gettext('requested changes for acceptance: "{comment}"'), SUBMIT_CONTRACT_DOCUMENTS: gettext('Submitted Contract Documents'), UPLOAD_CONTRACT: gettext('Uploaded a {contract.state} contract'), APPROVE_CONTRACT: gettext('Approved contract'), UPDATE_INVOICE_STATUS: 'handle_update_invoice_status', CREATE_INVOICE: gettext('Invoice added'), SUBMIT_REPORT: gettext('Submitted a report'), SKIPPED_REPORT: 'handle_skipped_report', REPORT_FREQUENCY_CHANGED: 'handle_report_frequency', DISABLED_REPORTING: gettext('disabled reporting'), BATCH_DELETE_SUBMISSION: 'handle_batch_delete_submission', BATCH_ARCHIVE_SUBMISSION: 'handle_batch_archive_submission', BATCH_UPDATE_INVOICE_STATUS: 'handle_batch_update_invoice_status', ARCHIVE_SUBMISSION: gettext('archived this submission'), UNARCHIVE_SUBMISSION: gettext('un-archived this submission'), DELETE_INVOICE: gettext('deleted an invoice'), REMOVE_TASK: 'handle_task_removal'}
message
¶
Source code in hypha/apply/activity/adapters/base.py
render_message
¶
get_neat_related
¶
Source code in hypha/apply/activity/adapters/base.py
batch_recipients
¶
Source code in hypha/apply/activity/adapters/base.py
process_batch
¶
Source code in hypha/apply/activity/adapters/base.py
process
¶
Source code in hypha/apply/activity/adapters/base.py
process_send
¶
process_send(message_type, recipients, events, request, user, source, sources=None, related=None, **kwargs)
Source code in hypha/apply/activity/adapters/base.py
create_logs
¶
Source code in hypha/apply/activity/adapters/base.py
log_kwargs
¶
recipients
¶
extra_kwargs
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
reviewers_updated
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
batch_reviewers_updated
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
batch_determination
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_batch_delete_submission
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_batch_archive_submission
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_batch_update_invoice_status
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_paf_assignment
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_task_removal
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_transition
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_project_transition
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_batch_transition
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
partners_updated
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_report_frequency
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_skipped_report
¶
handle_update_invoice_status
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
send_message
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
handle_screening_statuses
¶
Source code in hypha/apply/activity/adapters/activity_feed.py
AdapterBase
¶
message
¶
Source code in hypha/apply/activity/adapters/base.py
render_message
¶
extra_kwargs
¶
get_neat_related
¶
Source code in hypha/apply/activity/adapters/base.py
recipients
¶
batch_recipients
¶
Source code in hypha/apply/activity/adapters/base.py
process_batch
¶
Source code in hypha/apply/activity/adapters/base.py
process
¶
Source code in hypha/apply/activity/adapters/base.py
process_send
¶
process_send(message_type, recipients, events, request, user, source, sources=None, related=None, **kwargs)
Source code in hypha/apply/activity/adapters/base.py
create_logs
¶
Source code in hypha/apply/activity/adapters/base.py
log_kwargs
¶
DjangoMessagesAdapter
¶
Bases: AdapterBase
messages
class-attribute
instance-attribute
¶
messages = {BATCH_REVIEWERS_UPDATED: 'batch_reviewers_updated', BATCH_TRANSITION: 'batch_transition', BATCH_DETERMINATION_OUTCOME: 'batch_determinations', REMOVE_DOCUMENT: gettext('Successfully removed document'), SKIPPED_REPORT: 'handle_skipped_report', REPORT_FREQUENCY_CHANGED: 'handle_report_frequency', DISABLED_REPORTING: gettext('Reporting disabled'), CREATE_REMINDER: gettext('Reminder created'), DELETE_REMINDER: gettext('Reminder deleted')}
message
¶
Source code in hypha/apply/activity/adapters/base.py
render_message
¶
extra_kwargs
¶
get_neat_related
¶
Source code in hypha/apply/activity/adapters/base.py
process_batch
¶
Source code in hypha/apply/activity/adapters/base.py
process
¶
Source code in hypha/apply/activity/adapters/base.py
process_send
¶
process_send(message_type, recipients, events, request, user, source, sources=None, related=None, **kwargs)
Source code in hypha/apply/activity/adapters/base.py
create_logs
¶
Source code in hypha/apply/activity/adapters/base.py
log_kwargs
¶
batch_reviewers_updated
¶
Source code in hypha/apply/activity/adapters/django_messages.py
handle_report_frequency
¶
Source code in hypha/apply/activity/adapters/django_messages.py
handle_skipped_report
¶
Source code in hypha/apply/activity/adapters/django_messages.py
batch_transition
¶
Source code in hypha/apply/activity/adapters/django_messages.py
batch_determinations
¶
Source code in hypha/apply/activity/adapters/django_messages.py
recipients
¶
batch_recipients
¶
EmailAdapter
¶
Bases: AdapterBase
messages
class-attribute
instance-attribute
¶
messages = {NEW_SUBMISSION: 'messages/email/submission_confirmation.html', DRAFT_SUBMISSION: 'messages/email/submission_confirmation.html', COMMENT: 'notify_comment', EDIT_SUBMISSION: 'messages/email/submission_edit.html', TRANSITION: 'handle_transition', BATCH_TRANSITION: 'handle_batch_transition', DETERMINATION_OUTCOME: 'handle_determination', BATCH_DETERMINATION_OUTCOME: 'handle_batch_determination', INVITED_TO_PROPOSAL: 'messages/email/invited_to_proposal.html', BATCH_READY_FOR_REVIEW: 'handle_batch_ready_for_review', READY_FOR_REVIEW: 'handle_ready_for_review', REVIEWERS_UPDATED: 'handle_ready_for_review', BATCH_REVIEWERS_UPDATED: 'handle_batch_ready_for_review', PARTNERS_UPDATED: 'partners_updated_applicant', PARTNERS_UPDATED_PARTNER: 'partners_updated_partner', UPLOAD_CONTRACT: 'messages/email/contract_uploaded.html', SUBMIT_CONTRACT_DOCUMENTS: 'messages/email/submit_contract_documents.html', CREATED_PROJECT: 'messages/email/project_created.html', SENT_TO_COMPLIANCE: 'messages/email/sent_to_compliance.html', REQUEST_PROJECT_CHANGE: 'messages/email/project_request_change.html', ASSIGN_PAF_APPROVER: 'messages/email/assign_paf_approvers.html', APPROVE_PAF: 'messages/email/paf_for_approval.html', UPDATE_INVOICE: 'handle_invoice_updated', UPDATE_INVOICE_STATUS: 'handle_invoice_status_updated', APPROVE_INVOICE: 'messages/email/invoice_approved.html', SUBMIT_REPORT: 'messages/email/report_submitted.html', SKIPPED_REPORT: 'messages/email/report_skipped.html', REPORT_FREQUENCY_CHANGED: 'messages/email/report_frequency.html', REPORT_NOTIFY: 'messages/email/report_notify.html', REVIEW_REMINDER: 'messages/email/ready_to_review.html', PROJECT_TRANSITION: 'handle_project_transition'}
message
¶
Source code in hypha/apply/activity/adapters/base.py
get_neat_related
¶
Source code in hypha/apply/activity/adapters/base.py
process_batch
¶
Source code in hypha/apply/activity/adapters/base.py
process
¶
Source code in hypha/apply/activity/adapters/base.py
process_send
¶
process_send(message_type, recipients, events, request, user, source, sources=None, related=None, **kwargs)
Source code in hypha/apply/activity/adapters/base.py
create_logs
¶
Source code in hypha/apply/activity/adapters/base.py
log_kwargs
¶
get_subject
¶
Source code in hypha/apply/activity/adapters/emails.py
extra_kwargs
¶
handle_transition
¶
Source code in hypha/apply/activity/adapters/emails.py
handle_batch_transition
¶
Source code in hypha/apply/activity/adapters/emails.py
handle_project_transition
¶
Source code in hypha/apply/activity/adapters/emails.py
handle_invoice_status_updated
¶
handle_invoice_updated
¶
handle_determination
¶
Source code in hypha/apply/activity/adapters/emails.py
handle_batch_determination
¶
Source code in hypha/apply/activity/adapters/emails.py
handle_ready_for_review
¶
handle_batch_ready_for_review
¶
Source code in hypha/apply/activity/adapters/emails.py
notify_comment
¶
Source code in hypha/apply/activity/adapters/emails.py
recipients
¶
Source code in hypha/apply/activity/adapters/emails.py
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 |
|
batch_recipients
¶
Source code in hypha/apply/activity/adapters/emails.py
reviewers
¶
partners_updated_applicant
¶
partners_updated_partner
¶
Source code in hypha/apply/activity/adapters/emails.py
render_message
¶
send_message
¶
Source code in hypha/apply/activity/adapters/emails.py
SlackAdapter
¶
Bases: AdapterBase
Notification Adaptor for internal staff on the configured slack channels.
Source code in hypha/apply/activity/adapters/slack.py
messages
class-attribute
instance-attribute
¶
messages = {NEW_SUBMISSION: gettext('A new submission has been submitted for {source.page.title}: <{link}|{source.title_text_display}> by {user}'), UPDATE_LEAD: gettext('The lead of <{link}|{source.title_text_display}> has been updated from {old_lead} to {source.lead} by {user}'), BATCH_UPDATE_LEAD: 'handle_batch_lead', COMMENT: gettext('A new {comment.visibility} comment has been posted on <{link}|{source.title}> by {user}'), EDIT_SUBMISSION: gettext('{user} has edited <{link}|{source.title_text_display}>'), APPLICANT_EDIT: gettext('{user} has edited <{link}|{source.title_text_display}>'), REVIEWERS_UPDATED: 'reviewers_updated', BATCH_REVIEWERS_UPDATED: 'handle_batch_reviewers', PARTNERS_UPDATED: gettext('{user} has updated the partners on <{link}|{source.title_text_display}>'), TRANSITION: gettext('{user} has updated the status of <{link}|{source.title_text_display}>: {old_phase.display_name} → {source.phase}'), BATCH_TRANSITION: 'handle_batch_transition', DETERMINATION_OUTCOME: 'handle_determination', BATCH_DETERMINATION_OUTCOME: 'handle_batch_determination', PROPOSAL_SUBMITTED: gettext('A proposal has been submitted for review: <{link}|{source.title_text_display}>'), INVITED_TO_PROPOSAL: gettext('<{link}|{source.title_text_display}> by {source.user} has been invited to submit a proposal'), NEW_REVIEW: gettext('{user} has submitted a review for <{link}|{source.title_text_display}>. Outcome: {review.outcome}, Score: {review.get_score_display}'), READY_FOR_REVIEW: 'notify_reviewers', OPENED_SEALED: gettext('{user} has opened the sealed submission: <{link}|{source.title_text_display}>'), REVIEW_OPINION: gettext('{user} {opinion.opinion_display}s with {opinion.review.author}s review of <{link}|{source.title_text_display}>'), BATCH_READY_FOR_REVIEW: 'batch_notify_reviewers', DELETE_SUBMISSION: gettext('{user} has deleted {source.title_text_display}'), DELETE_REVIEW: gettext('{user} has deleted {review.author} review for <{link}|{source.title_text_display}>'), DELETE_REVIEW_OPINION: gettext('{user} has deleted {review_opinion.author} review opinion for <{link}|{source.title_text_display}>'), CREATED_PROJECT: gettext('{user} has created a Project: <{link}|{source.title}>'), UPDATE_PROJECT_LEAD: gettext('The lead of project <{link}|{source.title}> has been updated from {old_lead} to {source.lead} by {user}'), UPDATE_PROJECT_TITLE: gettext('The project title has been updated from <{link}|{old_title}> to <{link}|{source.title}> by {user}'), EDIT_REVIEW: gettext('{user} has edited {review.author} review for <{link}|{source.title_text_display}>'), SEND_FOR_APPROVAL: gettext('{user} has requested approval on project <{link}|{source.title}>'), APPROVE_PROJECT: gettext('{user} has approved project <{link}|{source.title}>'), REQUEST_PROJECT_CHANGE: gettext('{user} has requested changes for project acceptance on <{link}|{source.title}>'), UPLOAD_CONTRACT: gettext('{user} has uploaded a contract for <{link}|{source.title}>'), SUBMIT_CONTRACT_DOCUMENTS: gettext('{user} has submitted the contracting document for project <{link}|{source.title}>'), APPROVE_CONTRACT: gettext('{user} has approved contract for <{link}|{source.title}>'), CREATE_INVOICE: gettext('{user} has created invoice for <{link}|{source.title}>'), UPDATE_INVOICE_STATUS: gettext('{user} has changed the status of <{link_related}|invoice> on <{link}|{source.title}> to {invoice.status_display}'), DELETE_INVOICE: gettext('{user} has deleted invoice from <{link}|{source.title}>'), UPDATE_INVOICE: gettext('{user} has updated invoice for <{link}|{source.title}>'), SUBMIT_REPORT: gettext('{user} has submitted a report for <{link}|{source.title}>'), BATCH_DELETE_SUBMISSION: 'handle_batch_delete_submission', STAFF_ACCOUNT_CREATED: gettext('{user} has created a new account for <{link}|{source}>'), STAFF_ACCOUNT_EDITED: gettext('{user} has edited account for <{link}|{source}> that now has following roles: {roles}'), BATCH_ARCHIVE_SUBMISSION: 'handle_batch_archive_submission', ARCHIVE_SUBMISSION: gettext('{user} has archived the submission: {source.title_text_display}'), UNARCHIVE_SUBMISSION: gettext('{user} has unarchived the submission: {source.title_text_display}')}
message
¶
Source code in hypha/apply/activity/adapters/base.py
render_message
¶
get_neat_related
¶
Source code in hypha/apply/activity/adapters/base.py
process_batch
¶
Source code in hypha/apply/activity/adapters/base.py
process
¶
Source code in hypha/apply/activity/adapters/base.py
process_send
¶
process_send(message_type, recipients, events, request, user, source, sources=None, related=None, **kwargs)