1. Zhang Huangbin
  2. iredadmin-ose

Commits

Zhang Huangbin  committed ac92b2d

Typo.

  • Participants
  • Parent commits 2f05804
  • Branches default

Comments (0)

Files changed (2)

File controllers/ldap/urls.py

View file
         '/users/(%s)' % re_domain,                      'controllers.ldap.user.list',
         '/profile/user/(general)/(%s)' % re_email,      'controllers.ldap.user.profile',
         '/profile/user/(shadow)/(%s)' % re_email,       'controllers.ldap.user.profile',
-        '/profile/user/(groups)/(%s)' % re_email,       'controllers.ldap.user.profile',
+        '/profile/user/(members)/(%s)' % re_email,       'controllers.ldap.user.profile',
         '/profile/user/(services)/(%s)' % re_email,     'controllers.ldap.user.profile',
         '/profile/user/(forwarding)/(%s)' % re_email,   'controllers.ldap.user.profile',
         '/profile/user/(bcc)/(%s)' % re_email,          'controllers.ldap.user.profile',

File controllers/ldap/user.py

View file
             return result
 
         if domain == '' or domain is None:
-            #return render.users(allDomains=allDomains)
-
             # List users if only one domain available.
             if isinstance(allDomains, types.ListType) is True and len(allDomains) == 1:
                 cur_domain = str(allDomains[0][1]['domainName'][0])
             result = userLib.list(domain=domain)
             if result[0] is True:
                 return render.users(
-                        users=result[1], cur_domain=domain,
+                        users=result[1],
+                        cur_domain=domain,
                         allDomains=allDomains,
                         msg=i.get('msg'),
                         )
 class profile(dbinit):
     @base.protected
     def GET(self, profile_type, mail):
-        i = web.input(enabledService=[],telephoneNumber=[],mailForwardingAddress=[],)
+        i = web.input(
+                enabledService=[],
+                telephoneNumber=[],
+                mailForwardingAddress=[],
+                memberOfGroup=[],
+                )
         self.mail = web.safestr(mail)
         self.profile_type = web.safestr(profile_type)