diff options
Diffstat (limited to 'sunshine/util/config.py')
-rw-r--r-- | sunshine/util/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sunshine/util/config.py b/sunshine/util/config.py index 9a3adf5..74a31d0 100644 --- a/sunshine/util/config.py +++ b/sunshine/util/config.py @@ -3,6 +3,8 @@ import logging import xml.etree.ElementTree as ET +from twisted.internet import defer + __all__ = ['SunshineConfig'] logger = logging.getLogger('Sunshine.Config') @@ -35,6 +37,7 @@ class SunshineConfig(object): self.path2 = os.path.join(path, 'alias') return os.path.join(path, 'profile.xml') + #@defer.inlineCallbacks def get_contacts(self): self.roster = {'groups':[], 'contacts':[]} try: @@ -51,9 +54,11 @@ class SunshineConfig(object): return self.roster except: + logger.error("Problem with contacts file parsing.") self.contacts_count = 0 return self.roster + def make_contacts_file(self, groups, contacts): contactbook_xml = ET.Element("ContactBook") |