Ensure that accessing self.api.settings works for plugins.

This commit is contained in:
Lance Stout 2012-04-08 15:59:47 -04:00
parent 9ffde5ab37
commit af099737ab

View file

@ -6,6 +6,8 @@ class APIWrapper(object):
def __init__(self, api, name):
self.api = api
self.name = name
if name not in self.api.settings:
self.api.settings[name] = {}
def __getattr__(self, attr):
"""Curry API management commands with the API name."""