Fix uninitialized attributes.

This commit is contained in:
Jan Cholasta 2011-04-21 10:13:06 +02:00 committed by Martin Kosek
parent ccde115421
commit 5700920627
5 changed files with 11 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class ACI:
"""
def __init__(self,acistr=None):
self.name = None
self.source_group = None
self.dest_group = None
self.orig_acistr = acistr
self.target = {}
self.action = "allow"

View File

@ -1125,6 +1125,9 @@ class Data(Param):
('pattern', (basestring,), None),
('pattern_errmsg', (basestring,), None),
)
re = None
re_errmsg = None
def __init__(self, name, *rules, **kw):
super(Data, self).__init__(name, *rules, **kw)

View File

@ -154,6 +154,7 @@ class LazyText(object):
self.domain = domain
self.localedir = localedir
self.key = (domain, localedir)
self.args = None
def __eq__(self, other):
"""

View File

@ -113,6 +113,10 @@ class Service:
else:
self.sstore = sysrestore.StateFile('/var/lib/ipa/sysrestore')
self.realm = None
self.suffix = None
self.principal = None
def ldap_connect(self):
self.admin_conn = self.__get_conn(self.fqdn, self.dm_password)

View File

@ -178,6 +178,7 @@ class WSGIExecutioner(Executioner):
Base class for execution backends with a WSGI application interface.
"""
content_type = None
key = ''
def set_api(self, api):