def __init__(self, options): GenericSmsDriver.__init__(self, options) if not self.url_pattern: try: self.url_pattern = self.options['url_pattern'].strip('"\'') except KeyError, e: raise SmsConfigError("GenericHttp driver requires 'url_pattern' option")
def __init__(self, options): GenericSmsDriver.__init__(self, options) if not self.url_pattern: try: self.url_pattern = self.options['url_pattern'].strip('"\'') except KeyError, e: raise SmsConfigError( "GenericHttp driver requires 'url_pattern' option")
def __init__(self, options = {}): GenericSmsDriver.__init__(self, options)