that would work if the extension is a skin, or a skin component such as a search list extension or a generator.
but if the extension is a service, you probably want this in the config:
[SnowService]
address = 192.168.1.55
username = theuser
password = thepassword
max_mm = 2438
then in the snow service code (python) you'll have something like this:
class SnowService(StdService):
def __init__(self, engine, config_dict):
super(SnowService, self).__init__(engine, config_dict)
snow_dict = config_dict.get('SnowService', {})
self.max_mm = int(snow_dict.get('max_mm', 2000))
try:
self.address = snow_dict['address']
self.username = snow_dict['username']
self.password = snow_dict['password']
except KeyError, e:
raise Exception("missing parameter '%s'" % e)
then you can use self.address, self.username, etc wherever you need them in the other methods of SnowService.
m