From d63ec5fd3eca61ea53d06a96bfb52170111fc25d Mon Sep 17 00:00:00 2001 From: Chris Ball Date: Sun, 11 Jul 2010 14:01:37 -0400 Subject: Add cfbe bug /206 from Gour --- .../comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/body | 13 +++++++++++++ .../9e75984a-fc76-46ec-a1f3-ac80014b0c41/values | 8 ++++++++ .../bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/values | 17 +++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/body create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/values create mode 100644 .be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/values diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/body b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/body new file mode 100644 index 0000000..86a46ca --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/body @@ -0,0 +1,13 @@ +Attempt to edit some bug details gives 500 Internal Server Error with: + +[11/Jul/2010:17:28:26] HTTP Traceback (most recent call last): + File "/usr/lib/python2.6/site-packages/cherrypy/_cprequest.py", line + 606, in respond + cherrypy.response.body = self.handler() + File "/usr/lib/python2.6/site-packages/cherrypy/_cpdispatch.py", + line 25, in __call__ + return self.callable(*self.args, **self.kwargs) + File "/home/gour/repos/git/gour-be/interfaces/web/web.py", line 161, + in edit + shortname = self.bd.bug_shortname(bug) +AttributeError: 'BugDir' object has no attribute 'bug_shortname' diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/values new file mode 100644 index 0000000..49c3a18 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/comments/9e75984a-fc76-46ec-a1f3-ac80014b0c41/values @@ -0,0 +1,8 @@ +Author: gour + + +Content-type: text/plain + + +Date: Sun, 11 Jul 2010 17:48:17 +0000 + diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/values new file mode 100644 index 0000000..959cc7a --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/206d9b07-6e30-4c8b-9594-ee98e3c646e7/values @@ -0,0 +1,17 @@ +creator: gour + + +reporter: gour + + +severity: minor + + +status: open + + +summary: '''BugDir'' object has no attribute ''bug_shortname'' (cfbe)' + + +time: Sun, 11 Jul 2010 17:46:52 +0000 + -- cgit From 1c904b36abdec26b72d32ad7bc1e848c4064c21b Mon Sep 17 00:00:00 2001 From: Mathieu Clabaut Date: Mon, 12 Jul 2010 16:32:01 +0200 Subject: Exception when doing 'be html -e' 'html_gen' was referenced before assignment. --- libbe/command/html.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libbe/command/html.py b/libbe/command/html.py index e6c4c8c..f4273e9 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -104,9 +104,6 @@ class HTML (libbe.command.Command): ]) def _run(self, **params): - if params['export-template'] == True: - html_gen.write_default_template(params['export-template-dir']) - return 0 bugdir = self._get_bugdir() bugdir.load_all_bugs() html_gen = HTMLGen(bugdir, @@ -116,7 +113,10 @@ class HTML (libbe.command.Command): min_id_length=params['min-id-length'], verbose=params['verbose'], stdout=self.stdout) - html_gen.run(params['output']) + if params['export-template'] == True: + html_gen.write_default_template(params['export-template-dir']) + else: + html_gen.run(params['output']) return 0 def _long_help(self): -- cgit