aboutsummaryrefslogtreecommitdiffstats
path: root/cfbe.py
diff options
context:
space:
mode:
Diffstat (limited to 'cfbe.py')
-rwxr-xr-xcfbe.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cfbe.py b/cfbe.py
index 49fc515..7e2db0e 100755
--- a/cfbe.py
+++ b/cfbe.py
@@ -4,9 +4,10 @@ import cherrypy
from libbe import bugdir
from jinja2 import Environment, FileSystemLoader
-bug_root = '/Users/sjl/Desktop/be/.be'
+bug_root = '/Users/sjl/Documents/cherryflavoredbugseverywhere/.be'
bd = bugdir.BugDir(root=bug_root)
bd.load_all_bugs()
+repository_name = bd.root.split('/')[-1]
template_root = '/Users/sjl/Documents/cherryflavoredbugseverywhere/templates'
env = Environment(loader=FileSystemLoader(template_root))
@@ -17,6 +18,7 @@ class WebInterface:
@cherrypy.expose
def index(self, status='open', assignee=''):
bd.load_all_bugs()
+
if status == 'open':
status = ['open', 'assigned', 'test', 'unconfirmed', 'wishlist']
label = 'All Open Bugs'
@@ -43,7 +45,8 @@ class WebInterface:
bugs = [bug for bug in bugs if bug.assigned == assignee]
return template.render(bugs=bugs, bd=bd, label=label,
- assignees=possible_assignees)
+ assignees=possible_assignees,
+ repository_name=repository_name)
config = '/Users/sjl/Documents/cherryflavoredbugseverywhere/cfbe.config'