summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-08 21:46:23 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-08 21:46:23 +0000
commit3fe13d5945df224643374da477f68e04d4f443e5 (patch)
treec9200db44c1178681a9046ccd1e803d5d2b869b4 /ipalib/plugable.py
parentfdfa827a36df87fd6b228fc1560576e268413104 (diff)
downloadfreeipa.git-3fe13d5945df224643374da477f68e04d4f443e5.tar.gz
freeipa.git-3fe13d5945df224643374da477f68e04d4f443e5.tar.xz
freeipa.git-3fe13d5945df224643374da477f68e04d4f443e5.zip
87: Moved to_cli(), from_cli() functions from plugable.py into new cli.py file; moved corresponding unit tests into new test_cli.py file
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 0a6a0caa..ecbd5855 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -26,24 +26,6 @@ import inspect
import errors
-def to_cli(name):
- """
- Takes a Python identifier and transforms it into form suitable for the
- Command Line Interface.
- """
- assert isinstance(name, str)
- return name.replace('_', '-')
-
-
-def from_cli(cli_name):
- """
- Takes a string from the Command Line Interface and transforms it into a
- Python identifier.
- """
- assert isinstance(cli_name, basestring)
- return cli_name.replace('-', '_')
-
-
def check_identifier(name):
"""
Raises errors.NameSpaceError if `name` is not a valid Python identifier