Mercurial > public > src > rhodecode
diff pylons_app/lib/db_manage.py @ 413:55377fdc1fc6
cleared global application settings.
Made it much more extensible by keeping it key/value in the database.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 01 Aug 2010 18:36:00 +0200 |
parents | 5cd6616b8673 |
children | b27d32cb3157 |
line wrap: on
line diff
--- a/pylons_app/lib/db_manage.py Sun Aug 01 17:08:58 2010 +0200 +++ b/pylons_app/lib/db_manage.py Sun Aug 01 18:36:00 2010 +0200 @@ -121,9 +121,14 @@ paths.ui_value = os.path.join(path, '*') - hgsettings = HgAppSettings() - hgsettings.app_auth_realm = 'hg-app authentication' - hgsettings.app_title = 'hg-app' + hgsettings1 = HgAppSettings() + + hgsettings1.app_settings_name = 'realm' + hgsettings1.app_settings_value = 'hg-app authentication' + + hgsettings2 = HgAppSettings() + hgsettings2.app_settings_name = 'title' + hgsettings2.app_settings_value = 'hg-app' try: #self.sa.add(hooks) @@ -132,7 +137,8 @@ self.sa.add(web3) self.sa.add(web4) self.sa.add(paths) - self.sa.add(hgsettings) + self.sa.add(hgsettings1) + self.sa.add(hgsettings2) self.sa.commit() except: self.sa.rollback()