Class: MadrigalNotify | admin.py | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
MadrigalNotify is an object used to send messages to an administrator about a Madrigal database.This object provides functions needed to send messages to an administrator about a Madrigal database, for now only sendAlert, which sends an email to the site administrator found is siteTab.txt (or if not possible, the admin in madrigal.cfg, and finally if all else fails, to root). Usage example: import madrigal.admin try: adminObj = madrigal.admin.MadrigalNotify() adminObj.sendAlert('This is important!', 'Important Message') except madrigal.admin.MadrigalError, e: print e.getExceptionStr() Non-standard Python modules used: None Exceptions thrown: None - Note that MadrigalNotify tries every trick it knows to avoid throwing exceptions, since this is the class that will generally be called when there is a problem. Change history: Written by Bill Rideout Dec. 4, 2001
|