summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-03-23 15:12:49 -0400
committerRob Crittenden <rcritten@redhat.com>2009-03-25 11:02:47 -0400
commit5aed824a6c4806ef8ad0d929fd891be6f2c60175 (patch)
tree1d6d9779bb7736d56eb51701298cb7e1586a4da6 /ipalib
parent233a4cb5fd7db54c6e312c105e70db949335d5a8 (diff)
downloadfreeipa-5aed824a6c4806ef8ad0d929fd891be6f2c60175.tar.gz
freeipa-5aed824a6c4806ef8ad0d929fd891be6f2c60175.tar.xz
freeipa-5aed824a6c4806ef8ad0d929fd891be6f2c60175.zip
Use tuples instead of lists for class variables
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/basegroup.py6
-rw-r--r--ipalib/plugins/hostgroup.py2
-rw-r--r--ipalib/plugins/rolegroup.py1
3 files changed, 5 insertions, 4 deletions
diff --git a/ipalib/plugins/basegroup.py b/ipalib/plugins/basegroup.py
index 54913566c..7cba75a47 100644
--- a/ipalib/plugins/basegroup.py
+++ b/ipalib/plugins/basegroup.py
@@ -27,7 +27,7 @@ from ipalib import Str, Int, Flag, List # Parameter types
from ldap.dn import escape_dn_chars
-default_attributes = ['cn','description','member','memberof']
+default_attributes = ('cn','description','member','memberof')
default_class = "groupofnames"
@@ -88,7 +88,7 @@ class BaseGroup(Object):
class basegroup_add(crud.Add):
'Add a new group.'
- base_classes = ["top", default_class]
+ base_classes = ("top", default_class)
def execute(self, cn, **kw):
"""
@@ -214,7 +214,7 @@ class basegroup_find(crud.Find):
return ldap.search(**search_kw)
- def output_for_cli(self, textui, result, uid, **options):
+ def output_for_cli(self, textui, result, criteria, **options):
counter = result[0]
groups = result[1:]
if counter == 0 or len(groups) == 0:
diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py
index 71b14993e..8afc563fc 100644
--- a/ipalib/plugins/hostgroup.py
+++ b/ipalib/plugins/hostgroup.py
@@ -38,7 +38,7 @@ api.register(hostgroup)
class hostgroup_add(basegroup_add):
'Add a new hostgroup.'
- base_classes = ["top", "groupofnames", "ipaHostGroup"]
+ base_classes = ("top", "groupofnames", "ipaHostGroup")
api.register(hostgroup_add)
diff --git a/ipalib/plugins/rolegroup.py b/ipalib/plugins/rolegroup.py
index c843c0988..092b9551f 100644
--- a/ipalib/plugins/rolegroup.py
+++ b/ipalib/plugins/rolegroup.py
@@ -38,6 +38,7 @@ api.register(rolegroup)
class rolegroup_add(basegroup_add):
'Add a new rolegroup.'
+ base_classes = ("top", "groupofnames", "nestedgroup")
api.register(rolegroup_add)