New Param: removed more depreciated 'import ipa_types'

This commit is contained in:
Jason Gerard DeRose 2009-01-14 12:00:47 -07:00
parent 2b2e73e7df
commit 69acff450c
4 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,6 @@ import frontend
import backend
import errors
import plugable
import ipa_types
import util
from constants import CLI_TAB
@ -801,7 +800,7 @@ class CLI(object):
)
if 'password' in option.flags:
kw['action'] = 'store_true'
elif isinstance(option.type, ipa_types.Bool):
elif option.type is bool:
if option.default is True:
kw['action'] = 'store_false'
else:

View File

@ -28,6 +28,7 @@ from plugable import lock, check_name
import errors
from errors import check_type, check_isinstance, raise_TypeError
import parameters
from parameters import create_param
from util import make_repr

View File

@ -10,7 +10,7 @@ do
if [[ -f $executable ]]; then
echo "[ $name: Starting tests... ]"
((runs += 1))
if $executable /usr/bin/nosetests -v --with-doctest
if $executable /usr/bin/nosetests -v
then
echo "[ $name: Tests OK ]"
else

View File

@ -23,7 +23,7 @@ Test the `ipalib.frontend` module.
from tests.util import raises, getitem, no_set, no_del, read_only
from tests.util import check_TypeError, ClassChecker, create_test_api
from ipalib import frontend, backend, plugable, errors, ipa_types, config
from ipalib import frontend, backend, plugable, errors, parameters, config
def test_RULE_FLAG():