From 7b571e369312ae5c246f1a90337c0d5980a6a538 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 26 Jan 2010 06:39:00 -0700 Subject: Enabled CRUDS in webUI using wehjit 0.2.0 --- ipalib/plugable.py | 2 ++ ipalib/plugins/baseldap.py | 7 ++++++- ipalib/plugins/user.py | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'ipalib') diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 3ee2bd54..ecccb79e 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -531,6 +531,8 @@ class API(DictProxy): value = getattr(options, key, None) if value is not None: overrides[key] = value + if hasattr(options, 'prod'): + overrides['webui_prod'] = options.prod if context is not None: overrides['context'] = context self.bootstrap(**overrides) diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 17db0482..eeea7a6c 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -133,6 +133,7 @@ class LDAPCreate(crud.Create): """ Create a new entry in LDAP. """ + takes_options = ( Flag('raw', cli_name='raw', @@ -142,6 +143,7 @@ class LDAPCreate(crud.Create): Flag('all', cli_name='all', doc='retrieve all attributes', + exclude='webui', ), Str('addattr*', validate_add_attribute, cli_name='addattr', @@ -291,14 +293,17 @@ class LDAPUpdate(LDAPQuery, crud.Update): """ Update an LDAP entry. """ + takes_options = ( Flag('raw', cli_name='raw', doc='print entries as they are stored in LDAP', + exclude='webui', ), Flag('all', cli_name='all', doc='retrieve all attributes', + exclude='webui', ), Str('addattr*', validate_add_attribute, cli_name='addattr', @@ -456,6 +461,7 @@ class LDAPModMember(LDAPQuery): Flag('raw', cli_name='raw', doc='print entries as they are stored in LDAP', + exclude='webui', ), ) @@ -751,4 +757,3 @@ class LDAPSearch(crud.Search): def post_callback(self, ldap, entries, truncated, *args, **options): pass - diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 97641a46..1686d678 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -113,6 +113,9 @@ class user(LDAPObject): cli_name='password', label='Password', doc='Set the user password', + # FIXME: This is temporary till bug is fixed causing updates to + # bomb out via the webUI. + exclude='webui', ), Int('uidnumber?', cli_name='uid', -- cgit