def POST(self):
        user_data = web.input()
        projectId = user_data['project_id']
        dueDate = user_data['due_date']

        Database.setProjectDueDate(projectId,dueDate) 

        return web_helper_functions.redirectTo("view_project",
                                               {'project_id' : projectId,
                                                'show_active' : 'on'})
    def POST(self):
        user_data = web.input()
        issue_id = user_data.get('issue_id', None)
        remind_issue_id = user_data.get('remind_issue_id', None)
        remind_days = user_data.get('remind_days', 0)

        deltWith = user_data.get('delt_with', False)
        print "in post ", user_data

        if remind_issue_id != None:
            issue = Database.fetchIssue(remind_issue_id)            
            afterTs = issue.issue_timestamp
            Database.issuePostpone(remind_issue_id, remind_days)

            getParams = {'after_timestamp' : afterTs}

            return web_helper_functions.redirectTo('issues', getParams)

        if issue_id != None:
            Database.issueSetDeltWith(int(issue_id), deltWith)
            return render.back_to_issue(issue_id)
 def GET(self):
     os.system("/bin/sh /home/simon/sshot/report_gen_scripts/all_scripts.sh")
     return web_helper_functions.redirectTo("/")
 def POST(self):
     projectId = CrudForms.receiveAddEditProjectForm()
     return web_helper_functions.redirectTo("view_project",
                                            {'project_id' : projectId,
                                             'show_active' : 'on'})