diff options
4 files changed, 42 insertions, 4 deletions
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 <gour@gaura-nitai> + + +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 <gour@gaura-nitai> + + +reporter: gour <gour@gaura-nitai> + + +severity: minor + + +status: open + + +summary: '''BugDir'' object has no attribute ''bug_shortname'' (cfbe)' + + +time: Sun, 11 Jul 2010 17:46:52 +0000 + 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): |