summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-04-21 10:13:06 +0200
committerMartin Kosek <mkosek@redhat.com>2011-04-21 10:41:29 +0200
commit5700920627b8ac5e303e37d23a0051d0799a4801 (patch)
tree1bd01923eebd29a6a1fe12fdc66e0259d1d58da1
parentccde1154215c89ac6ad0982425555be59ab1c699 (diff)
downloadfreeipa-5700920627b8ac5e303e37d23a0051d0799a4801.tar.gz
freeipa-5700920627b8ac5e303e37d23a0051d0799a4801.tar.xz
freeipa-5700920627b8ac5e303e37d23a0051d0799a4801.zip
Fix uninitialized attributes.
-rwxr-xr-xipalib/aci.py2
-rw-r--r--ipalib/parameters.py3
-rw-r--r--ipalib/text.py1
-rw-r--r--ipaserver/install/service.py4
-rw-r--r--ipaserver/rpcserver.py1
5 files changed, 11 insertions, 0 deletions
diff --git a/ipalib/aci.py b/ipalib/aci.py
index abb2ebc49..1b607a393 100755
--- a/ipalib/aci.py
+++ b/ipalib/aci.py
@@ -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"
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index ef62aabf7..acc7d2909 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -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)
diff --git a/ipalib/text.py b/ipalib/text.py
index a910cc5fb..af532db45 100644
--- a/ipalib/text.py
+++ b/ipalib/text.py
@@ -154,6 +154,7 @@ class LazyText(object):
self.domain = domain
self.localedir = localedir
self.key = (domain, localedir)
+ self.args = None
def __eq__(self, other):
"""
diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py
index 253c0f054..0b9bb01eb 100644
--- a/ipaserver/install/service.py
+++ b/ipaserver/install/service.py
@@ -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)
diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py
index 3d93abe95..9c08bb8ee 100644
--- a/ipaserver/rpcserver.py
+++ b/ipaserver/rpcserver.py
@@ -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):