Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit e09d5370cbcc6d02bf9bde52f4c91e5668b43d29

Further regression fix (edit resources)
app/app.py
(5 / 8)
  
685685 resource_type = request.form['resource_type']
686686 resource_guid = request.form['edit_guid']
687687 if resource_type=='question':
688 resource = g.client.Question(resource_guid)
688 resource = g.client.Feedback(resource_guid)
689689 resource_cursor = g.Questions
690690 elif resource_type=='idea':
691 resource = g.client.Idea(resource_guid)
691 resource = g.client.Feedback(resource_guid)
692692 resource_cursor = g.Ideas
693693 elif resource_type=='problem':
694 resource = g.client.Problem(resource_guid)
694 resource = g.client.Feedback(resource_guid)
695695 resource_cursor = g.Problems
696696 elif resource_type=='review':
697 resource = g.client.Review(resource_guid)
697 resource = g.client.Feedback(resource_guid)
698698 resource_cursor = g.Reviews
699699 elif resource_type=='solution':
700700 resource = g.client.Solution(resource_guid)
704704 resource['title']=request.form['title']
705705 if request.form.get('content'):
706706 resource['content']=request.form['content']
707 try:
708 resource.post()
709 except NotFound:
710 abort(500)
707 resource.post()
711708 resource_cursor._reset()
712709 return redirect(request.form.get('href'))
713710