Example #1
0
 def setUp(self):
     for issue in Issue.all(): issue.delete()
     for log in Log.all(): log.delete()
     for comment in Comment.all(): comment.delete()
     for group in Group.all(): group.delete()
     for error in Error.all(): error.delete()
     for project in Project.all(): project.delete()
Example #2
0
def issue_log_view(request, pk):
    issue = issue_by_number(pk)
    logs = Log.all().filter("issue = ", issue)
    paginated = Paginator(logs, 50)
    page = get_page(request, paginated)
    return direct_to_template(request, "issue_log_list.html", extra_context={
        "page": page,
        "issue": issue,
        "nav": {"selected": "issues", "subnav": "list"},
    })
Example #3
0
 def setUp(self):
     for issue in Issue.all():
         issue.delete()
     for log in Log.all():
         log.delete()
     for comment in Comment.all():
         comment.delete()
     for group in Group.all():
         group.delete()
     for error in Error.all():
         error.delete()
     for project in Project.all():
         project.delete()
Example #4
0
def issue_log_view(request, pk):
    issue = issue_by_number(pk)
    logs = Log.all().filter("issue = ", issue)
    paginated = Paginator(logs, 50)
    page = get_page(request, paginated)
    return direct_to_template(request,
                              "issue_log_list.html",
                              extra_context={
                                  "page": page,
                                  "issue": issue,
                                  "nav": {
                                      "selected": "issues",
                                      "subnav": "list"
                                  },
                              })