create_department_email(mail_dict, department)
¶
Updates the given mail dict with the right details to deal with a request to contact the given department.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mail_dict
|
dict
|
the mail dict to update |
required |
department
|
str
|
the department to contact |
required |
Source code in ckanext/nhm/lib/mail.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
create_indexlots_email(mail_dict)
¶
Updates the given mail dict with the right details to deal with an index lots contact request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mail_dict
|
dict
|
the mail dict to update |
required |
Source code in ckanext/nhm/lib/mail.py
9 10 11 12 13 14 15 16 17 18 | |
create_package_email(mail_dict, package)
¶
Updates the given mail dict with the right details to contact the owner(s) of the given package.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mail_dict
|
dict
|
the mail dict to update |
required |
package
|
dict
|
the package dict |
required |
Source code in ckanext/nhm/lib/mail.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
get_package_owners(package)
¶
Retrieve a list of the package owners for emailing.
Owners are defined as the package admins, or if no admins are specified, the original creator of the package.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
package
|
dict
|
the package dict |
required |
Source code in ckanext/nhm/lib/mail.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |