Mercurial > kallithea
comparison rhodecode/model/db.py @ 1381:a1ab3e9c7e82 beta
fixes #204, ldap active checkbox, credits goes to Matt Little.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 13 Jun 2011 18:04:42 +0200 |
parents | 3fbc09ad1faf |
children | 7e221629a3e5 |
comparison
equal
deleted
inserted
replaced
1380:39ae0f0972b9 | 1381:a1ab3e9c7e82 |
---|---|
101 .filter(cls.app_settings_name.startswith('ldap_'))\ | 101 .filter(cls.app_settings_name.startswith('ldap_'))\ |
102 .all() | 102 .all() |
103 fd = {} | 103 fd = {} |
104 for row in ret: | 104 for row in ret: |
105 fd.update({row.app_settings_name:row.app_settings_value}) | 105 fd.update({row.app_settings_name:row.app_settings_value}) |
106 | |
107 fd.update({'ldap_active':str2bool(fd.get('ldap_active'))}) | |
108 | |
106 return fd | 109 return fd |
107 | 110 |
108 | 111 |
109 class RhodeCodeUi(Base): | 112 class RhodeCodeUi(Base): |
110 __tablename__ = 'rhodecode_ui' | 113 __tablename__ = 'rhodecode_ui' |