Commit 26762439 authored by root's avatar root

Merge branch 'release_201804-dev' into release_201804

parents 888cb61d 29856029
......@@ -45,7 +45,8 @@ class AppSettings(FormView):
lang = '_' + get_language()
except:
lang = '_es'
self.appid = self.kwargs.get('appid', None)+lang
self.groupname = self.kwargs.get('appid', None)
self.appid = self.groupname + lang
data = get_input_deps_fields(request, self.appid)
self.inputdeps = data.get('inputdeps', None)
self.maintenance = data['maintenance']
......@@ -75,8 +76,7 @@ class AppSettings(FormView):
""" Populate dynamic dependencies form fields with vañues from ldap """
for deps in self.inputdeps:
# Get a lis of all input fields
print('dep: %s' % deps['id'])
dn = 'ou=%s,ou=%s,%s' % (deps['id'], self.appid, settings.LDAP_TREE_SERVICES);
dn = 'ou=%s,ou=%s,%s' % (deps['id'], self.groupname, settings.LDAP_TREE_SERVICES);
self.request.ldap.search(
dn,
"(objectclass=*)",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment