def GET(self):
        user_data = web.input()
        issue_id = user_data.get('issue_id', None)
        after_timestamp = user_data.get('after_timestamp', None)
        after_issue_id  = user_data.get('after_id', None)
        
        if after_timestamp != None and after_issue_id != None:
            issue = Database.loadNextUndeltwithIssueAfter(after_timestamp, after_issue_id)
        elif issue_id != None:            
            issue = Database.fetchIssue(issue_id)
        else:
            issue = Database.loadFirstUndeltwithIssue()

        if issue != None:
            return render.inbox_issue_view(issue,self.nextIssueUrl(issue))
        else:
            return render.inbox_issue_no_more_issues()
    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)