comparison pylons_app/controllers/settings.py @ 341:1ef52a70f3b7

Made config file free configuration based on database and capable of beeing manage via application settings + some code cleanups
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 14 Jul 2010 02:28:32 +0200
parents 05b212954275
children b0715a788432
comparison
equal deleted inserted replaced
340:71f25781079d 341:1ef52a70f3b7
68 encoding="UTF-8", 68 encoding="UTF-8",
69 force_defaults=False 69 force_defaults=False
70 ) 70 )
71 71
72 def update(self, repo_name): 72 def update(self, repo_name):
73 print request.POST
74 print 'x' * 110
75 repo_model = RepoModel() 73 repo_model = RepoModel()
76 _form = RepoSettingsForm(edit=True)() 74 _form = RepoSettingsForm(edit=True)()
77 try: 75 try:
78 form_result = _form.to_python(dict(request.POST)) 76 form_result = _form.to_python(dict(request.POST))
79 repo_model.update(repo_name, form_result) 77 repo_model.update(repo_name, form_result)