summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-13 02:12:08 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-13 02:12:08 +0000
commit69f7132365c4f369068b8e09921cd29ea92f3754 (patch)
tree816fea70c10c1415bd9fb7bd38fe5a874ad21fe6 /ipalib
parent05cefc2af69ceb0df6b03c8e3cae4510024f1d02 (diff)
downloadfreeipa-69f7132365c4f369068b8e09921cd29ea92f3754.tar.gz
freeipa-69f7132365c4f369068b8e09921cd29ea92f3754.tar.xz
freeipa-69f7132365c4f369068b8e09921cd29ea92f3754.zip
137: Removed depreciated PublicAPI.max_cmd_len property
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/public.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/ipalib/public.py b/ipalib/public.py
index e173bdd5b..798b258c2 100644
--- a/ipalib/public.py
+++ b/ipalib/public.py
@@ -308,16 +308,5 @@ class prop(attr, option):
class PublicAPI(plugable.API):
- __max_cmd_len = None
-
def __init__(self):
super(PublicAPI, self).__init__(cmd, obj, mthd, prop)
-
- def __get_max_cmd_len(self):
- if self.__max_cmd_len is None:
- if not hasattr(self, 'cmd'):
- return None
- max_cmd_len = max(len(str(cmd)) for cmd in self.cmd)
- object.__setattr__(self, '_PublicAPI__max_cmd_len', max_cmd_len)
- return self.__max_cmd_len
- max_cmd_len = property(__get_max_cmd_len)