Changeset 92:70f69e60149a
- Timestamp:
- 10/24/08 20:30:48 (3 years ago)
- Author:
- chris
- Branch:
- unix
- Message:
-
remove constructure requirements
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r90
|
r92
|
|
| 90 | 90 | |
| 91 | 91 | class JabberAlertDeviceInfo(object): |
| 92 | | def __init__(self, host = DEFAULT_JABBER_HOST, port = DEFAULT_JABBER_PORT, user, password): |
| 93 | | self.__host = host |
| 94 | | self.__port = port |
| 95 | | self.__user = user |
| 96 | | self.__password = password |
| | 92 | def __init__(self): |
| | 93 | self.__host = "" |
| | 94 | self.__port = 0 |
| | 95 | self.__user = "" |
| | 96 | self.__password = "" |
| 97 | 97 | |
| 98 | 98 | def display(self): |
-
|
r91
|
r92
|
|
| 89 | 89 | smtpInfo.password = self.get('smtp','password') |
| 90 | 90 | |
| 91 | | jabberInfo.host = self.getRequired('jabber','host',DEFAULT_JABBER_HOST) |
| | 91 | jabberInfo.host = self.get('jabber','host',DEFAULT_JABBER_HOST) |
| 92 | 92 | jabberInfo.port = self.get('jabber','port',DEFAULT_JABBER_PORT) |
| 93 | 93 | jabberInfo.user = self.get('jabber','user') |
-
|
r76
|
r92
|
|
| 1 | 1 | [main] |
| 2 | 2 | states = TX,TN |
| 3 | | #watchers = 5 |
| 4 | | watchers = 1 |
| 5 | | #watchers = 11 |
| | 3 | watchers = 13 |
| 6 | 4 | history=100 |
| 7 | 5 | |
| … |
… |
|
| 95 | 93 | alert = watch,warning |
| 96 | 94 | areas = McMinnville,TN:Warren,TN:Cannon,TN:Coffee,TN:Grundy,TN:Sequatchie,TN:Van Buren,TN:White,TN:Dekalb,TN |
| | 95 | |
| | 96 | [12] |
| | 97 | device = jabber |
| | 98 | to = cfreeze@jabber.example.com |
| | 99 | alert = forecast,statement,advisory,watch,warning |
| | 100 | areas = Rockwall,TX:Collin,TX:Dallas,TX:Kaufman,TX:Hunt,TX:McMinnville,TN:Warren,TN:Cannon,TN:Coffee,TN:Grundy,TN:Sequatchie,TN:Van Buren,TN:White,TN:Dekalb,TN |
| | 101 | |
| | 102 | [13] |
| | 103 | device = media |
| | 104 | alert = forecast,statement,advisory,watch,warning |
| | 105 | areas = Rockwall,TX:Collin,TX:Dallas,TX:Kaufman,TX:Hunt,TX:McMinnville,TN:Warren,TN:Cannon,TN:Coffee,TN:Grundy,TN:Sequatchie,TN:Van Buren,TN:White,TN:Dekalb,TN |