Mercurial > libervia-backend
comparison src/memory/memory.py @ 458:094050fe461e
core: fixed Params class name in load_default_params
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 06 Mar 2012 09:03:19 +0100 |
parents | 7099ea9c1b12 |
children | cf005701624b |
comparison
equal
deleted
inserted
replaced
457:fbe7c9118ce4 | 458:094050fe461e |
---|---|
21 | 21 |
22 from __future__ import with_statement | 22 from __future__ import with_statement |
23 | 23 |
24 import os.path | 24 import os.path |
25 import time | 25 import time |
26 import cPickle as pickle | |
27 from ConfigParser import SafeConfigParser, NoOptionError, NoSectionError | 26 from ConfigParser import SafeConfigParser, NoOptionError, NoSectionError |
28 from xml.dom import minidom | 27 from xml.dom import minidom |
29 from logging import debug, info, warning, error | 28 from logging import debug, info, warning, error |
30 from twisted.internet import defer | 29 from twisted.internet import defer |
31 from twisted.words.protocols.jabber import jid | 30 from twisted.words.protocols.jabber import jid |
72 'label_autodisconnect': _('Disconnect on frontend closure'), | 71 'label_autodisconnect': _('Disconnect on frontend closure'), |
73 'category_misc': _("Misc") | 72 'category_misc': _("Misc") |
74 } | 73 } |
75 | 74 |
76 def load_default_params(self): | 75 def load_default_params(self): |
77 self.dom = minidom.parseString(Param.default_xml.encode('utf-8')) | 76 self.dom = minidom.parseString(Params.default_xml.encode('utf-8')) |
78 | 77 |
79 def load_xml(self, file): | 78 def load_xml(self, file): |
80 """Load parameters template from file""" | 79 """Load parameters template from file""" |
81 self.dom = minidom.parse(file) | 80 self.dom = minidom.parse(file) |
82 | 81 |