Changeset 175:ae015c7202e1
- Timestamp:
- 11/26/08 03:16:34 (3 years ago)
- Author:
- cfreeze@…
- Branch:
- CAP_1.1
- Message:
-
fix email alerts since the CAP 1.1. change
- Location:
- StormSiren
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r122
|
r175
|
|
| 78 | 78 | |
| 79 | 79 | def send(self,alert): |
| 80 | | subject = EMAIL_SUBJECT_LEADER + " - " + alert.event + " (" + alert.area + ")" |
| | 80 | subject = EMAIL_SUBJECT_LEADER + " - " + alert.headline + alert.getAreas() |
| 81 | 81 | alert_body = "" |
| 82 | 82 | |
-
|
r174
|
r175
|
|
| 66 | 66 | str += " Issued: " + self.issued + "\n" |
| 67 | 67 | str += "Expires: " + self.expires + "\n" |
| | 68 | str += "Updated: " + self.updated + "\n" |
| 68 | 69 | return str |
| 69 | 70 | |
| 70 | 71 | def getDetailedWithFormat(self, desc_width): |
| 71 | | return self.text + "\n\n" + textwrap.fill(self.description.replace("\n",' '),desc_width) + "\n" |
| | 72 | str = self.text + "\n\n" |
| | 73 | str += textwrap.fill(self.description.replace("\n",' '),desc_width) + "\n" |
| | 74 | return str |
| 72 | 75 | |
| 73 | 76 | def getDetailed(self): |
| 74 | | return self.text + "\n\n" + self.description + "\n" |
| | 77 | str = self.text + "\n\n" |
| | 78 | str += self.description + "\n" |
| | 79 | return str |
| 75 | 80 | |
| 76 | 81 | def getAreas(self): |