78 self.gateway = "gateway.smstrade.de" # gateway where the request will be sent |
78 self.gateway = "gateway.smstrade.de" # gateway where the request will be sent |
79 self.gatewayPort = 80 # port of the gateway |
79 self.gatewayPort = 80 # port of the gateway |
80 self.script = "/" # full path to the script that will handle the request |
80 self.script = "/" # full path to the script that will handle the request |
81 self.method = "POST" # method that will be used. Currently only POST is supported |
81 self.method = "POST" # method that will be used. Currently only POST is supported |
82 |
82 |
83 def read_basic_config(self,filename): |
83 def read_basic_config(self, filenames): |
84 """Read basic options from the config file""" |
84 """Read basic options from the config file""" |
85 cp = ConfigParser.ConfigParser() |
85 cp = ConfigParser.ConfigParser() |
86 cp.read([filename]) |
86 cp.read(filenames) |
87 self.key=cp.get(self.section, 'key') |
87 self.key=cp.get(self.section, 'key') |
88 self.route=cp.get(self.section, 'route') |
88 self.route=cp.get(self.section, 'route') |
89 self.from_=cp.get(self.section, 'from') |
89 self.from_=cp.get(self.section, 'from') |
90 self.debug=cp.get(self.section, 'debug') |
90 self.debug=cp.get(self.section, 'debug') |
91 |
91 |