1. Zhang Huangbin
  2. iredadmin-ose

Commits

Zhang Huangbin  committed 97e6f43

Re-render web page with preferred language after changing preference.

  • Participants
  • Parent commits 4a08779
  • Branches default

Comments (0)

Files changed (1)

File libs/ldaplib/admin.py

View file
             try:
                 # Modify profiles.
                 self.conn.modify_s(self.dn, mod_attrs)
+                if session.get('username') == self.mail:
+                    web.render = iredutils.setRenderLang(web.render, self.lang, oldlang=session.get('lang'),)
+                    session['lang'] = self.lang
                 return (True, 'SUCCESS')
             except ldap.LDAPError, e:
                 return (False, str(e))