From 16ed63b5c8dc2e211a29ba3636cd00b547ceb9aa Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Mon, 10 Apr 2006 19:24:23 -0400 Subject: Noted bug --- .../b0e7165b-7099-45ca-9513-412225f7bd52/body | 21 +++++++++++++ .../b0e7165b-7099-45ca-9513-412225f7bd52/values | 21 +++++++++++++ .../a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/values | 35 ++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 .be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/body create mode 100644 .be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/values create mode 100644 .be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/values diff --git a/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/body b/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/body new file mode 100644 index 0000000..0a004ac --- /dev/null +++ b/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/body @@ -0,0 +1,21 @@ +Err, perhaps we should use revision ids. Or status. Or something... + + +$ be diff +Traceback (most recent call last): + File "/usr/bin/be", line 55, in ? + sys.exit(execute(sys.argv[1], sys.argv[2:])) + File "/usr/lib/python2.4/site-packages/libbe/cmdutil.py", line 105, in execute return get_command(cmd).execute([a.decode(encoding) for a in args]) + File "/usr/lib/python2.4/site-packages/becommands/diff.py", line 33, in execute + diff.diff_report(diff.reference_diff(tree, spec), tree) + File "/usr/lib/python2.4/site-packages/libbe/diff.py", line 41, in reference_diff + return diff(bugdir.get_reference_bugdir(spec), bugdir) + File "/usr/lib/python2.4/site-packages/libbe/diff.py", line 22, in diff + old_bug_map = old_tree.bug_map() + File "/usr/lib/python2.4/site-packages/libbe/bugdir.py", line 169, in bug_map + for bug in self.list(): + File "/usr/lib/python2.4/site-packages/libbe/bugdir.py", line 164, in list + for uuid in self.list_uuids(): + File "/usr/lib/python2.4/site-packages/libbe/bugdir.py", line 177, in list_uuids + for uuid in os.listdir(self.bugs_path): +OSError: [Errno 2] No such file or directory: '/home/abentley/.bzrrevs/None/.be/bugs' diff --git a/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/values b/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/values new file mode 100644 index 0000000..8e0fad6 --- /dev/null +++ b/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/comments/b0e7165b-7099-45ca-9513-412225f7bd52/values @@ -0,0 +1,21 @@ + + + +Content-type=text/plain + + + + + + +Date=Mon, 10 Apr 2006 23:23:25 +0000 + + + + + + +From=abentley + + + diff --git a/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/values b/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/values new file mode 100644 index 0000000..b745597 --- /dev/null +++ b/.be/bugs/a4d38ba7-ec28-4096-a4f3-eb8c9790ffb2/values @@ -0,0 +1,35 @@ + + + +creator=abentley + + + + + + +severity=minor + + + + + + +status=open + + + + + + +summary=be diff doesn't work with bzr in directories that have no commits + + + + + + +time=Mon, 10 Apr 2006 23:22:17 +0000 + + + -- cgit From 68df9cb4413c2642bac15a940c26e68f9d1391cb Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Mon, 10 Apr 2006 22:07:54 -0400 Subject: Updated beweb to use TurboGears 0.9 --- .bzrignore | 2 +- .../Bugs-Everywhere-Web.egg-info/PKG-INFO | 15 ++ .../Bugs-Everywhere-Web.egg-info/SOURCES.txt | 36 ++++ .../Bugs-Everywhere-Web.egg-info/not-zip-safe | 0 .../Bugs-Everywhere-Web.egg-info/requires.txt | 1 + .../Bugs-Everywhere-Web.egg-info/sqlobject.txt | 2 + .../Bugs-Everywhere-Web.egg-info/top_level.txt | 2 + .../Bugs_Everywhere_Web.egg-info/PKG-INFO | 1 + .../paster_plugins.txt | 2 + .../Bugs_Everywhere_Web.egg-info/requires.txt | 1 + .../Bugs_Everywhere_Web.egg-info/sqlobject.txt | 2 + .../Bugs_Everywhere_Web.egg-info/top_level.txt | 1 + Bugs-Everywhere-Web/README.txt | 4 + Bugs-Everywhere-Web/beweb/__init__.py | 0 Bugs-Everywhere-Web/beweb/app.cfg | 121 +++++++++++ Bugs-Everywhere-Web/beweb/config.py.example | 10 + Bugs-Everywhere-Web/beweb/config/tmp/__init__.py | 0 Bugs-Everywhere-Web/beweb/controllers.py | 229 +++++++++++++++++++++ Bugs-Everywhere-Web/beweb/formatting.py | 73 +++++++ Bugs-Everywhere-Web/beweb/model.py | 10 + Bugs-Everywhere-Web/beweb/prest.py | 159 ++++++++++++++ Bugs-Everywhere-Web/beweb/release.py | 13 ++ Bugs-Everywhere-Web/beweb/static/css/style.css | 104 ++++++++++ Bugs-Everywhere-Web/beweb/static/images/ds-b.png | Bin 0 -> 213 bytes Bugs-Everywhere-Web/beweb/static/images/ds-bl.png | Bin 0 -> 327 bytes Bugs-Everywhere-Web/beweb/static/images/ds-br.png | Bin 0 -> 365 bytes Bugs-Everywhere-Web/beweb/static/images/ds-l.png | Bin 0 -> 197 bytes Bugs-Everywhere-Web/beweb/static/images/ds-r.png | Bin 0 -> 214 bytes Bugs-Everywhere-Web/beweb/static/images/ds-t.png | Bin 0 -> 200 bytes Bugs-Everywhere-Web/beweb/static/images/ds-tl.png | Bin 0 -> 240 bytes Bugs-Everywhere-Web/beweb/static/images/ds-tr.png | Bin 0 -> 311 bytes Bugs-Everywhere-Web/beweb/static/images/ds2-b.png | Bin 0 -> 206 bytes Bugs-Everywhere-Web/beweb/static/images/ds2-r.png | Bin 0 -> 204 bytes .../beweb/static/images/favicon.ico | Bin 0 -> 318 bytes .../beweb/static/images/favicon.png | Bin 0 -> 267 bytes .../beweb/static/images/half-spiral.png | Bin 0 -> 1112 bytes Bugs-Everywhere-Web/beweb/static/images/is-b.png | Bin 0 -> 200 bytes Bugs-Everywhere-Web/beweb/static/images/is-bl.png | Bin 0 -> 408 bytes Bugs-Everywhere-Web/beweb/static/images/is-br.png | Bin 0 -> 304 bytes Bugs-Everywhere-Web/beweb/static/images/is-l.png | Bin 0 -> 214 bytes Bugs-Everywhere-Web/beweb/static/images/is-r.png | Bin 0 -> 197 bytes Bugs-Everywhere-Web/beweb/static/images/is-t.png | Bin 0 -> 213 bytes Bugs-Everywhere-Web/beweb/static/images/is-tl.png | Bin 0 -> 413 bytes Bugs-Everywhere-Web/beweb/static/images/is-tr.png | Bin 0 -> 414 bytes .../beweb/static/images/shadows.png | Bin 0 -> 3960 bytes Bugs-Everywhere-Web/beweb/static/images/spiral.png | Bin 0 -> 2120 bytes Bugs-Everywhere-Web/beweb/templates/__init__.py | 0 Bugs-Everywhere-Web/beweb/templates/about.kid | 23 +++ Bugs-Everywhere-Web/beweb/templates/bugs.kid | 49 +++++ Bugs-Everywhere-Web/beweb/templates/edit_bug.kid | 51 +++++ .../beweb/templates/edit_comment.kid | 27 +++ Bugs-Everywhere-Web/beweb/templates/error.kid | 14 ++ Bugs-Everywhere-Web/beweb/templates/login.kid | 113 ++++++++++ Bugs-Everywhere-Web/beweb/templates/master.kid | 71 +++++++ Bugs-Everywhere-Web/beweb/templates/projects.kid | 32 +++ Bugs-Everywhere-Web/beweb/templates/welcome.kid | 33 +++ Bugs-Everywhere-Web/beweb/tests/__init__.py | 0 .../beweb/tests/test_controllers.py | 16 ++ Bugs-Everywhere-Web/beweb/tests/test_model.py | 24 +++ Bugs-Everywhere-Web/dev.cfg | 37 ++++ Bugs-Everywhere-Web/libbe | 1 + Bugs-Everywhere-Web/prod.cfg | 41 ++++ Bugs-Everywhere-Web/server.log | 26 +++ Bugs-Everywhere-Web/setup.py | 60 ++++++ Bugs-Everywhere-Web/start-beweb.py | 29 +++ beweb/Bugs-Everywhere-Web.egg-info/PKG-INFO | 10 - beweb/Bugs-Everywhere-Web.egg-info/requires.txt | 1 - beweb/Bugs-Everywhere-Web.egg-info/sqlobject.txt | 2 - beweb/Bugs-Everywhere-Web.egg-info/top_level.txt | 1 - beweb/beweb-start.py | 24 --- beweb/beweb/__init__.py | 0 beweb/beweb/config.py.example | 10 - beweb/beweb/controllers.py | 201 ------------------ beweb/beweb/formatting.py | 73 ------- beweb/beweb/model.py | 8 - beweb/beweb/prest.py | 159 -------------- beweb/beweb/static/css/style.css | 104 ---------- beweb/beweb/static/images/ds-b.png | Bin 213 -> 0 bytes beweb/beweb/static/images/ds-bl.png | Bin 327 -> 0 bytes beweb/beweb/static/images/ds-br.png | Bin 365 -> 0 bytes beweb/beweb/static/images/ds-l.png | Bin 197 -> 0 bytes beweb/beweb/static/images/ds-r.png | Bin 214 -> 0 bytes beweb/beweb/static/images/ds-t.png | Bin 200 -> 0 bytes beweb/beweb/static/images/ds-tl.png | Bin 240 -> 0 bytes beweb/beweb/static/images/ds-tr.png | Bin 311 -> 0 bytes beweb/beweb/static/images/ds2-b.png | Bin 206 -> 0 bytes beweb/beweb/static/images/ds2-r.png | Bin 204 -> 0 bytes beweb/beweb/static/images/favicon.ico | Bin 318 -> 0 bytes beweb/beweb/static/images/favicon.png | Bin 267 -> 0 bytes beweb/beweb/static/images/half-spiral.png | Bin 1112 -> 0 bytes beweb/beweb/static/images/is-b.png | Bin 200 -> 0 bytes beweb/beweb/static/images/is-bl.png | Bin 408 -> 0 bytes beweb/beweb/static/images/is-br.png | Bin 304 -> 0 bytes beweb/beweb/static/images/is-l.png | Bin 214 -> 0 bytes beweb/beweb/static/images/is-r.png | Bin 197 -> 0 bytes beweb/beweb/static/images/is-t.png | Bin 213 -> 0 bytes beweb/beweb/static/images/is-tl.png | Bin 413 -> 0 bytes beweb/beweb/static/images/is-tr.png | Bin 414 -> 0 bytes beweb/beweb/static/images/shadows.png | Bin 3960 -> 0 bytes beweb/beweb/static/images/spiral.png | Bin 2120 -> 0 bytes beweb/beweb/templates/__init__.py | 0 beweb/beweb/templates/about.kid | 23 --- beweb/beweb/templates/bugs.kid | 49 ----- beweb/beweb/templates/edit_bug.kid | 51 ----- beweb/beweb/templates/edit_comment.kid | 27 --- beweb/beweb/templates/error.kid | 14 -- beweb/beweb/templates/master.kid | 51 ----- beweb/beweb/templates/projects.kid | 32 --- beweb/common.cfg | 9 - beweb/dev.cfg | 34 --- beweb/libbe | 1 - beweb/prod.cfg | 33 --- beweb/server.log | 26 --- beweb/setup.py | 18 -- 114 files changed, 1434 insertions(+), 962 deletions(-) create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/PKG-INFO create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/SOURCES.txt create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/not-zip-safe create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/requires.txt create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/sqlobject.txt create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/top_level.txt create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/PKG-INFO create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/paster_plugins.txt create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/requires.txt create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/sqlobject.txt create mode 100644 Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/top_level.txt create mode 100644 Bugs-Everywhere-Web/README.txt create mode 100644 Bugs-Everywhere-Web/beweb/__init__.py create mode 100644 Bugs-Everywhere-Web/beweb/app.cfg create mode 100644 Bugs-Everywhere-Web/beweb/config.py.example create mode 100644 Bugs-Everywhere-Web/beweb/config/tmp/__init__.py create mode 100644 Bugs-Everywhere-Web/beweb/controllers.py create mode 100644 Bugs-Everywhere-Web/beweb/formatting.py create mode 100644 Bugs-Everywhere-Web/beweb/model.py create mode 100644 Bugs-Everywhere-Web/beweb/prest.py create mode 100644 Bugs-Everywhere-Web/beweb/release.py create mode 100644 Bugs-Everywhere-Web/beweb/static/css/style.css create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-b.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-bl.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-br.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-l.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-r.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-t.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-tl.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds-tr.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds2-b.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/ds2-r.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/favicon.ico create mode 100644 Bugs-Everywhere-Web/beweb/static/images/favicon.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/half-spiral.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-b.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-bl.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-br.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-l.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-r.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-t.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-tl.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/is-tr.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/shadows.png create mode 100644 Bugs-Everywhere-Web/beweb/static/images/spiral.png create mode 100644 Bugs-Everywhere-Web/beweb/templates/__init__.py create mode 100644 Bugs-Everywhere-Web/beweb/templates/about.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/bugs.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/edit_bug.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/edit_comment.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/error.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/login.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/master.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/projects.kid create mode 100644 Bugs-Everywhere-Web/beweb/templates/welcome.kid create mode 100644 Bugs-Everywhere-Web/beweb/tests/__init__.py create mode 100644 Bugs-Everywhere-Web/beweb/tests/test_controllers.py create mode 100644 Bugs-Everywhere-Web/beweb/tests/test_model.py create mode 100644 Bugs-Everywhere-Web/dev.cfg create mode 120000 Bugs-Everywhere-Web/libbe create mode 100644 Bugs-Everywhere-Web/prod.cfg create mode 100644 Bugs-Everywhere-Web/server.log create mode 100644 Bugs-Everywhere-Web/setup.py create mode 100755 Bugs-Everywhere-Web/start-beweb.py delete mode 100644 beweb/Bugs-Everywhere-Web.egg-info/PKG-INFO delete mode 100644 beweb/Bugs-Everywhere-Web.egg-info/requires.txt delete mode 100644 beweb/Bugs-Everywhere-Web.egg-info/sqlobject.txt delete mode 100644 beweb/Bugs-Everywhere-Web.egg-info/top_level.txt delete mode 100755 beweb/beweb-start.py delete mode 100644 beweb/beweb/__init__.py delete mode 100644 beweb/beweb/config.py.example delete mode 100644 beweb/beweb/controllers.py delete mode 100644 beweb/beweb/formatting.py delete mode 100644 beweb/beweb/model.py delete mode 100644 beweb/beweb/prest.py delete mode 100644 beweb/beweb/static/css/style.css delete mode 100644 beweb/beweb/static/images/ds-b.png delete mode 100644 beweb/beweb/static/images/ds-bl.png delete mode 100644 beweb/beweb/static/images/ds-br.png delete mode 100644 beweb/beweb/static/images/ds-l.png delete mode 100644 beweb/beweb/static/images/ds-r.png delete mode 100644 beweb/beweb/static/images/ds-t.png delete mode 100644 beweb/beweb/static/images/ds-tl.png delete mode 100644 beweb/beweb/static/images/ds-tr.png delete mode 100644 beweb/beweb/static/images/ds2-b.png delete mode 100644 beweb/beweb/static/images/ds2-r.png delete mode 100644 beweb/beweb/static/images/favicon.ico delete mode 100644 beweb/beweb/static/images/favicon.png delete mode 100644 beweb/beweb/static/images/half-spiral.png delete mode 100644 beweb/beweb/static/images/is-b.png delete mode 100644 beweb/beweb/static/images/is-bl.png delete mode 100644 beweb/beweb/static/images/is-br.png delete mode 100644 beweb/beweb/static/images/is-l.png delete mode 100644 beweb/beweb/static/images/is-r.png delete mode 100644 beweb/beweb/static/images/is-t.png delete mode 100644 beweb/beweb/static/images/is-tl.png delete mode 100644 beweb/beweb/static/images/is-tr.png delete mode 100644 beweb/beweb/static/images/shadows.png delete mode 100644 beweb/beweb/static/images/spiral.png delete mode 100644 beweb/beweb/templates/__init__.py delete mode 100644 beweb/beweb/templates/about.kid delete mode 100644 beweb/beweb/templates/bugs.kid delete mode 100644 beweb/beweb/templates/edit_bug.kid delete mode 100644 beweb/beweb/templates/edit_comment.kid delete mode 100644 beweb/beweb/templates/error.kid delete mode 100644 beweb/beweb/templates/master.kid delete mode 100644 beweb/beweb/templates/projects.kid delete mode 100644 beweb/common.cfg delete mode 100644 beweb/dev.cfg delete mode 120000 beweb/libbe delete mode 100644 beweb/prod.cfg delete mode 100644 beweb/server.log delete mode 100644 beweb/setup.py diff --git a/.bzrignore b/.bzrignore index 7565778..0670f57 100644 --- a/.bzrignore +++ b/.bzrignore @@ -1,2 +1,2 @@ -beweb/beweb/config.py +Bugs-Everywhere-Web/beweb/config.py ./build diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/PKG-INFO b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/PKG-INFO new file mode 100644 index 0000000..6cb6ad2 --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/PKG-INFO @@ -0,0 +1,15 @@ +Metadata-Version: 1.0 +Name: Bugs-Everywhere-Web +Version: 1.0 +Summary: UNKNOWN +Home-page: UNKNOWN +Author: UNKNOWN +Author-email: UNKNOWN +License: UNKNOWN +Description: UNKNOWN +Platform: UNKNOWN +Classifier: Development Status :: 3 - Alpha +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python +Classifier: Topic :: Software Development :: Libraries :: Python Modules +Classifier: Framework :: TurboGears diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/SOURCES.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/SOURCES.txt new file mode 100644 index 0000000..def18b1 --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/SOURCES.txt @@ -0,0 +1,36 @@ +README.txt +setup.py +start-beweb.py +Bugs-Everywhere-Web.egg-info/PKG-INFO +Bugs-Everywhere-Web.egg-info/SOURCES.txt +Bugs-Everywhere-Web.egg-info/not-zip-safe +Bugs-Everywhere-Web.egg-info/requires.txt +Bugs-Everywhere-Web.egg-info/sqlobject.txt +Bugs-Everywhere-Web.egg-info/top_level.txt +beweb/__init__.py +beweb/config.py +beweb/controllers.py +beweb/formatting.py +beweb/model.py +beweb/prest.py +beweb/release.py +beweb/config/__init__.py +beweb/templates/__init__.py +beweb/tests/__init__.py +beweb/tests/test_controllers.py +beweb/tests/test_model.py +libbe/__init__.py +libbe/arch.py +libbe/bugdir.py +libbe/bzr.py +libbe/cmdutil.py +libbe/config.py +libbe/diff.py +libbe/mapfile.py +libbe/names.py +libbe/no_rcs.py +libbe/plugin.py +libbe/rcs.py +libbe/restconvert.py +libbe/tests.py +libbe/utility.py diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/not-zip-safe b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/not-zip-safe new file mode 100644 index 0000000..e69de29 diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/requires.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/requires.txt new file mode 100644 index 0000000..88b15cb --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/requires.txt @@ -0,0 +1 @@ +TurboGears >= 0.9a4 \ No newline at end of file diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/sqlobject.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/sqlobject.txt new file mode 100644 index 0000000..7f7cbad --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/sqlobject.txt @@ -0,0 +1,2 @@ +db_module=beweb.model +history_dir=$base/beweb/sqlobject-history diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/top_level.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/top_level.txt new file mode 100644 index 0000000..6455be9 --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/Bugs-Everywhere-Web.egg-info/top_level.txt @@ -0,0 +1,2 @@ +beweb +libbe diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/PKG-INFO b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/PKG-INFO new file mode 100644 index 0000000..78b12a6 --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/PKG-INFO @@ -0,0 +1 @@ +Version: 0.0 diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/paster_plugins.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/paster_plugins.txt new file mode 100644 index 0000000..14fec70 --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/paster_plugins.txt @@ -0,0 +1,2 @@ +TurboGears +PasteScript diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/requires.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/requires.txt new file mode 100644 index 0000000..b4e1d25 --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/requires.txt @@ -0,0 +1 @@ +TurboGears >= 0.8a4 \ No newline at end of file diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/sqlobject.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/sqlobject.txt new file mode 100644 index 0000000..7f7cbad --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/sqlobject.txt @@ -0,0 +1,2 @@ +db_module=beweb.model +history_dir=$base/beweb/sqlobject-history diff --git a/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/top_level.txt b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/top_level.txt new file mode 100644 index 0000000..74a8358 --- /dev/null +++ b/Bugs-Everywhere-Web/Bugs_Everywhere_Web.egg-info/top_level.txt @@ -0,0 +1 @@ +beweb diff --git a/Bugs-Everywhere-Web/README.txt b/Bugs-Everywhere-Web/README.txt new file mode 100644 index 0000000..efde8ff --- /dev/null +++ b/Bugs-Everywhere-Web/README.txt @@ -0,0 +1,4 @@ +Bugs-Everywhere-Web + +This is a TurboGears (http://www.turbogears.org) project. It can be +started by running the start-beweb.py script. \ No newline at end of file diff --git a/Bugs-Everywhere-Web/beweb/__init__.py b/Bugs-Everywhere-Web/beweb/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Bugs-Everywhere-Web/beweb/app.cfg b/Bugs-Everywhere-Web/beweb/app.cfg new file mode 100644 index 0000000..c424cf8 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/app.cfg @@ -0,0 +1,121 @@ +[global] +# The settings in this file should not vary depending on the deployment +# environment. devcfg.py and prodcfg.py are the locations for +# the different deployment settings. Settings in this file will +# be overridden by settings in those other files. + +# The commented out values below are the defaults + +# VIEW + +# which view (template engine) to use if one is not specified in the +# template name +# tg.defaultview = "kid" + +# kid.outputformat="html" +# kid.encoding="utf-8" + +# The sitetemplate is used for overall styling of a site that +# includes multiple TurboGears applications +# tg.sitetemplate="" + +# Allow every exposed function to be called as json, +# tg.allow_json = False + +# Set to True if you'd like all of your pages to include MochiKit +# tg.mochikit_all = False + +# VISIT TRACKING +# Each visit to your application will be assigned a unique visit ID tracked via +# a cookie sent to the visitor's browser. +# -------------- + +# Enable Visit tracking +# visit.on=False + +# Number of minutes a visit may be idle before it expires. +# visit.timeout=20 + +# The name of the cookie to transmit to the visitor's browser. +# visit.cookie.name="tg-visit" + +# Domain name to specify when setting the cookie (must begin with . according to +# RFC 2109). The default (None) should work for most cases and will default to +# the machine to which the request was made. NOTE: localhost is NEVER a valid +# value and will NOT WORK. +# visit.cookie.domain=None + +# Specific path for the cookie +# visit.cookie.path="/" + +# The name of the VisitManager plugin to use for visitor tracking. +# visit.manager="sqlobject" + + +# IDENTITY +# General configuration of the TurboGears Identity management module +# -------- + +# Switch to turn on or off the Identity management module +# identity.on=False + +# [REQUIRED] URL to which CherryPy will internally redirect when an access +# control check fails. If Identity management is turned on, a value for this +# option must be specified. +# identity.failure_url=None + +# The IdentityProvider to use -- defaults to the SqlObjectIdentityProvider which +# pulls User, Group, and Permission data out of your model database. +# identity.provider="sqlobject" + +# The names of the fields on the login form containing the visitor's user ID +# and password. In addition, the submit button is specified simply so its +# existence may be stripped out prior to passing the form data to the target +# controller. +# identity.form.user_name="user_name" +# identity.form.password="password" +# identity.form.submit="login" + +# What sources should the identity provider consider when determining the +# identity associated with a request? Comma separated list of identity sources. +# Valid sources: form, visit, http_auth +# identity.source="form,http_auth,visit" + + +# SqlObjectIdentityProvider +# Configuration options for the default IdentityProvider +# ------------------------- + +# The classes you wish to use for your Identity model. Leave these commented out +# to use the default classes for SqlObjectIdentityProvider. Or set them to the +# classes in your model. NOTE: These aren't TG_* because the TG prefix is +# reserved for classes created by TurboGears. +# identity.soprovider.model.user="beweb.model.User" +# identity.soprovider.model.group="beweb.model.Group" +# identity.soprovider.model.permission="beweb.model.Permission" + +# The password encryption algorithm used when comparing passwords against what's +# stored in the database. Valid values are 'md5' or 'sha1'. If you do not +# specify an encryption algorithm, passwords are expected to be clear text. +# +# The SqlObjectProvider *will* encrypt passwords supplied as part of your login +# form. If you set the password through the password property, like: +# my_user.password = 'secret' +# the password will be encrypted in the database, provided identity is up and +# running, or you have loaded the configuration specifying what encryption to +# use (in situations where identity may not yet be running, like tests). + +# identity.soprovider.encryption_algorithm=None + +[/static] +static_filter.on = True +#static_filter.dir = "%(top_level_dir)s/static" +static_filter.dir = "/home/abentley/be/Bugs-Everywhere-Web/beweb/static" + +[/favicon.ico] +static_filter.on = True +#static_filter.file = "%(top_level_dir)s/static/images/favicon.ico" +static_filter.file = "/home/abentley/be/Bugs-Everywhere-Web/beweb/static/images/favicon.ico" + +[/] +decodingFilter.on = True diff --git a/Bugs-Everywhere-Web/beweb/config.py.example b/Bugs-Everywhere-Web/beweb/config.py.example new file mode 100644 index 0000000..8745c6d --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/config.py.example @@ -0,0 +1,10 @@ +# This is an example beweb configuration file. + +# One thing we need is a map of projects. Projects have a beweb ID, a path, +# and a display name. + +# In this example, the 'be' beweb ID is assigned the display name "Bugs +# Everywhere" and the path "/home/abentley/be" + +projects = {"be": ("Bugs Everywhere","/home/abentley/be"), + } diff --git a/Bugs-Everywhere-Web/beweb/config/tmp/__init__.py b/Bugs-Everywhere-Web/beweb/config/tmp/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Bugs-Everywhere-Web/beweb/controllers.py b/Bugs-Everywhere-Web/beweb/controllers.py new file mode 100644 index 0000000..9231030 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/controllers.py @@ -0,0 +1,229 @@ +import turbogears +from turbogears import controllers, expose, redirect, identity +import cherrypy +from libbe.bugdir import (tree_root, cmp_severity, new_bug, new_comment, + NoRootEntry) +from libbe import names +from config import projects +from prest import PrestHandler, provide_action + +def project_tree(project): + try: + return tree_root(projects[project][1]) + except KeyError: + raise Exception("Unknown project %s" % project) + +def comment_url(project, bug, comment, **kwargs): + return turbogears.url("/project/%s/bug/%s/comment/%s" % + (project, bug, comment), kwargs) + +class Comment(PrestHandler): + @provide_action("action", "New comment") + def new_comment(self, comment_data, comment, *args, **kwargs): + bug_tree = project_tree(comment_data['project']) + bug = bug_tree.get_bug(comment_data['bug']) + comment = new_comment(bug, "") + comment.content_type = "text/restructured" + comment.save() + raise cherrypy.HTTPRedirect(comment_url(comment=comment.uuid, + **comment_data)) + + @provide_action("action", "Reply") + def reply_comment(self, comment_data, comment, *args, **kwargs): + bug_tree = project_tree(comment_data['project']) + bug = bug_tree.get_bug(comment_data['bug']) + reply_comment = new_comment(bug, "") + reply_comment.in_reply_to = comment.uuid + reply_comment.save() + reply_data = dict(comment_data) + del reply_data["comment"] + raise cherrypy.HTTPRedirect(comment_url(comment=reply_comment.uuid, + **reply_data)) + + @provide_action("action", "Update") + def update(self, comment_data, comment, comment_body, *args, **kwargs): + comment.body = comment_body + comment.save() + raise cherrypy.HTTPRedirect(bug_url(comment_data['project'], + comment_data['bug'])) + + def instantiate(self, project, bug, comment): + bug_tree = project_tree(project) + bug = bug_tree.get_bug(bug) + return bug.get_comment(comment) + + def dispatch(self, comment_data, comment, *args, **kwargs): + return self.edit_comment(comment_data['project'], comment) + + @turbogears.expose(html="beweb.templates.edit_comment") + def edit_comment(self, project, comment): + return {"comment": comment, "project_id": project} + +class Bug(PrestHandler): + comment = Comment() + @turbogears.expose(html="beweb.templates.edit_bug") + def index(self, project, bug): + return {"bug": bug, "project_id": project} + + def dispatch(self, bug_data, bug, *args, **kwargs): + if bug is None: + return self.list(bug_data['project'], **kwargs) + else: + return self.index(bug_data['project'], bug) + + @turbogears.expose(html="beweb.templates.bugs") + def list(self, project, sort_by=None, show_closed=False, action=None, + search=None): + if action == "New bug": + self.new_bug() + if show_closed == "False": + show_closed = False + bug_tree = project_tree(project) + bugs = list(bug_tree.list()) + if sort_by is None: + def cmp_date(bug1, bug2): + return -cmp(bug1.time, bug2.time) + bugs.sort(cmp_date) + bugs.sort(cmp_severity) + return {"project_id" : project, + "project_name" : projects[project][0], + "bugs" : bugs, + "show_closed" : show_closed, + "search" : search, + } + + @provide_action("action", "New bug") + def new_bug(self, bug_data, bug, **kwargs): + bug = new_bug(project_tree(bug_data['project'])) + bug.save() + raise cherrypy.HTTPRedirect(bug_url(bug_data['project'], bug.uuid)) + + @provide_action("action", "Update") + def update(self, bug_data, bug, status, severity, summary, assigned, + action): + bug.status = status + bug.severity = severity + bug.summary = summary + if assigned == "": + assigned = None + bug.assigned = assigned + bug.save() + bug.rcs.precommit(bug.path) + bug.rcs.commit(bug.path, "Auto-commit") + bug.rcs.postcommit(bug.path) + raise cherrypy.HTTPRedirect(bug_list_url(bug_data["project"])) + + def instantiate(self, project, bug): + return project_tree(project).get_bug(bug) + + @provide_action("action", "New comment") + def new_comment(self, bug_data, bug, *args, **kwargs): + try: + self.update(bug_data, bug, *args, **kwargs) + except cherrypy.HTTPRedirect: + pass + return self.comment.new_comment(bug_data, comment=None, *args, + **kwargs) + + +def project_url(project_id=None): + project_url = "/project/" + if project_id is not None: + project_url += "%s/" % project_id + return turbogears.url(project_url) + +def bug_url(project_id, bug_uuid=None): + bug_url = "/project/%s/bug/" % project_id + if bug_uuid is not None: + bug_url += "%s/" % bug_uuid + return turbogears.url(bug_url) + +def bug_list_url(project_id, show_closed=False, search=None): + bug_url = "/project/%s/bug/?show_closed=%s" % (project_id, + str(show_closed)) + if search is not None: + bug_url = "%s&search=%s" % (bug_url, search) + return turbogears.url(str(bug_url)) + + +class Project(PrestHandler): + bug = Bug() + @turbogears.expose(html="beweb.templates.projects") + def dispatch(self, project_data, project, *args, **kwargs): + if project is not None: + raise cherrypy.HTTPRedirect(bug_url(project)) + else: + return {"projects": projects} + + def instantiate(self, project): + return project + + +class Root(controllers.Root): + prest = PrestHandler() + prest.project = Project() + @turbogears.expose() + def index(self): + raise cherrypy.HTTPRedirect(project_url()) + + @expose(template="beweb.templates.login") + def login(self, forward_url=None, previous_url=None, *args, **kw): + + if not identity.current.anonymous and identity.was_login_attempted(): + raise redirect(forward_url) + + forward_url=None + previous_url= cherrypy.request.path + + if identity.was_login_attempted(): + msg=_("The credentials you supplied were not correct or "\ + "did not grant access to this resource.") + elif identity.get_identity_errors(): + msg=_("You must provide your credentials before accessing "\ + "this resource.") + else: + msg=_("Please log in.") + forward_url= cherrypy.request.headers.get("Referer", "/") + cherrypy.response.status=403 + return dict(message=msg, previous_url=previous_url, logging_in=True, + original_parameters=cherrypy.request.params, + forward_url=forward_url) + + @expose() + def logout(self): + identity.current.logout() + raise redirect("/") + + @turbogears.expose('beweb.templates.about') + def about(self, *paths, **kwargs): + return {} + + @turbogears.expose() + def default(self, *args, **kwargs): + return self.prest.default(*args, **kwargs) + + def _cp_on_error(self): + import traceback, StringIO + bodyFile = StringIO.StringIO() + traceback.print_exc(file = bodyFile) + trace_text = bodyFile.getvalue() + try: + raise + except cherrypy.NotFound: + self.handle_error('Not Found', str(e), trace_text, '404 Not Found') + + except NoRootEntry, e: + self.handle_error('Project Misconfiguration', str(e), trace_text) + + except Exception, e: + self.handle_error('Internal server error', str(e), trace_text) + + def handle_error(self, heading, body, traceback=None, + status='500 Internal Server Error'): + cherrypy.response.headerMap['Status'] = status + cherrypy.response.body = [self.errorpage(heading, body, traceback)] + + + @turbogears.expose(html='beweb.templates.error') + def errorpage(self, heading, body, traceback): + return {'heading': heading, 'body': body, 'traceback': traceback} diff --git a/Bugs-Everywhere-Web/beweb/formatting.py b/Bugs-Everywhere-Web/beweb/formatting.py new file mode 100644 index 0000000..44ed849 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/formatting.py @@ -0,0 +1,73 @@ +from StringIO import StringIO + +from elementtree.ElementTree import XML +from libbe.restconvert import rest_xml + +def to_unix(text): + skip_newline = False + for ch in text: + if ch not in ('\r', '\n'): + yield ch + else: + if ch == '\n': + if skip_newline: + continue + else: + skip_newline = True + yield '\n' + + +def soft_text(text): + first_space = False + translations = {'\n': '
\n', '&': '&', '\x3c': '<', + '\x3e': '>'} + for ch in to_unix(text): + if ch == ' ' and first_space is True: + yield ' ' + first_space = ch in (' ') + try: + yield translations[ch] + except KeyError: + yield ch + + +def soft_pre(text): + return XML('
'+ + ''.join(soft_text(text))+'
') + + +def get_rest_body(rest): + xml, warnings = rest_xml(StringIO(rest)) + return xml.find('{http://www.w3.org/1999/xhtml}body'), warnings + + +def comment_body_xhtml(comment): + if comment.content_type == "text/restructured": + return get_rest_body(comment.body)[0] + else: + return soft_pre(comment.body) + + +def select_among(name, options, default, display_names=None): + output = ['") + return XML("".join(output)) diff --git a/Bugs-Everywhere-Web/beweb/model.py b/Bugs-Everywhere-Web/beweb/model.py new file mode 100644 index 0000000..e20d1ce --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/model.py @@ -0,0 +1,10 @@ +from sqlobject import * +from turbogears.database import PackageHub +# Uncomment the following line if you wish to use Identity and SO_Provider +# from turbogears.identity.soprovider import TG_User, TG_Group, TG_Permission + +hub = PackageHub("beweb") +__connection__ = hub + +# class YourDataClass(SQLObject): +# pass diff --git a/Bugs-Everywhere-Web/beweb/prest.py b/Bugs-Everywhere-Web/beweb/prest.py new file mode 100644 index 0000000..e6b7cdf --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/prest.py @@ -0,0 +1,159 @@ +from unittest import TestCase +import unittest +"""A pseudo-REST dispatching method in which only the noun comes from the path. +The action performed will depend on kwargs. +""" + +class AmbiguousAction(Exception): + def __init__(self, actions): + Exception.__init__(self, "Supplied action is ambiguous.") + self.actions = actions + + +def provide_action(name, value): + def provider(func): + func._action_desc = (name, value) + return func + return provider + +class PrestHandler(object): + def __init__(self): + object.__init__(self) + self.actions = {} + for member in (getattr(self, m) for m in dir(self)): + if not hasattr(member, '_action_desc'): + continue + name, value = member._action_desc + if name not in self.actions: + self.actions[name] = {} + self.actions[name][value] = member + + @classmethod + def add_action(klass, name, value, function): + if name not in klass.actions: + klass.actions[name] = {} + klass.actions[name][value] = function + + + def decode(self, path, data=None): + """Convert the path into a handler, a resource, data, and extra_path""" + if data is None: + data = {} + if len(path) < 2 or not (hasattr(self, path[1])): + if len(path) == 0: + resource = None + else: + resource = self.instantiate(**data) + return self, resource, data, path[1:] + if len(path) > 2: + data[path[1]] = path[2] + return getattr(self, path[1]).decode(path[2:], data) + + def default(self, *args, **kwargs): + child, resource, data, extra = self.decode([None,] + list(args)) + action = child.get_action(**kwargs) + new_args = ([data, resource]+extra) + if action is not None: + return action(*new_args, **kwargs) + else: + return child.dispatch(*new_args, **kwargs) + + def get_action(self, **kwargs): + """Return the action requested by kwargs, if any. + + Raises AmbiguousAction if more than one action matches. + """ + actions = [] + for key in kwargs: + if key in self.actions: + if kwargs[key] in self.actions[key]: + actions.append(self.actions[key][kwargs[key]]) + if len(actions) == 0: + return None + elif len(actions) == 1: + return actions[0] + else: + raise AmbiguousAction(actions) + + +class PrestTester(TestCase): + def test_decode(self): + class ProjectHandler(PrestHandler): + actions = {} + def dispatch(self, project_data, project, *args, **kwargs): + self.project_id = project_data['project'] + self.project_data = project_data + self.resource = project + self.args = args + self.kwargs = kwargs + + def instantiate(self, project): + return [project] + + @provide_action('action', 'Save') + def save(self, project_data, project, *args, **kwargs): + self.action = "save" + + @provide_action('behavior', 'Update') + def update(self, project_data, project, *args, **kwargs): + self.action = "update" + + foo = PrestHandler() + foo.project = ProjectHandler() + handler, resource, data, extra = foo.decode([None, 'project', '83', + 'bloop', 'yeah']) + assert handler is foo.project + self.assertEqual({'project': '83'}, data) + self.assertEqual(['bloop', 'yeah'], extra) + foo.default(*['project', '27', 'extra'], **{'a':'b', 'b':'97'}) + self.assertEqual(foo.project.args, ('extra',)) + self.assertEqual(foo.project.kwargs, {'a':'b', 'b':'97'}) + self.assertEqual(foo.project.project_data, {'project': '27'}) + self.assertEqual(foo.project.resource, ['27']) + foo.default(*['project', '27', 'extra'], **{'action':'Save', 'b':'97'}) + self.assertEqual(foo.project.action, 'save') + foo.default(*['project', '27', 'extra'], + **{'behavior':'Update', 'b':'97'}) + self.assertEqual(foo.project.action, 'update') + self.assertRaises(AmbiguousAction, foo.default, + *['project', '27', 'extra'], + **{'behavior':'Update', 'action':'Save', 'b':'97'}) + + class BugHandler(PrestHandler): + actions = {} + def dispatch(self, bug_data, bug, *args, **kwargs): + self.project_id = project_data['project'] + self.project_data = project_data + self.resource = project + self.args = args + self.kwargs = kwargs + + def instantiate(self, project, bug): + return [project, bug] + + @provide_action('action', 'Save') + def save(self, project_data, project, *args, **kwargs): + self.action = "save" + + @provide_action('behavior', 'Update') + def update(self, project_data, project, *args, **kwargs): + self.action = "update" + + foo.project.bug = BugHandler() + handler, resource, data, extra = foo.decode([None, 'project', '83', + 'bug', '92']) + assert handler is foo.project.bug + self.assertEqual(resource[0], '83') + self.assertEqual(resource[1], '92') + self.assertEqual([], extra) + self.assertEqual(data['project'], '83') + self.assertEqual(data['bug'], '92') + +def test(): + patchesTestSuite = unittest.makeSuite(PrestTester,'test') + runner = unittest.TextTestRunner(verbosity=0) + return runner.run(patchesTestSuite) + + +if __name__ == "__main__": + test() diff --git a/Bugs-Everywhere-Web/beweb/release.py b/Bugs-Everywhere-Web/beweb/release.py new file mode 100644 index 0000000..0232912 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/release.py @@ -0,0 +1,13 @@ +# Release information about Bugs-Everywhere-Web + +version = "1.0" + +# description = "Your plan to rule the world" +# author = "Your Name Here" +# email = "YourEmail@YourDomain" +# copyright = "Vintage 2006 - a good year indeed" + +# if it's open source, you might want to specify these +# url = "http://yourcool.site/" +# download_url = "http://yourcool.site/download" +# license = "MIT" diff --git a/Bugs-Everywhere-Web/beweb/static/css/style.css b/Bugs-Everywhere-Web/beweb/static/css/style.css new file mode 100644 index 0000000..986950f --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/static/css/style.css @@ -0,0 +1,104 @@ +table +{ + background-color: black; +} +td +{ + background-color: white; +} +h1 +{ + font-family: "Verdana"; + font-weight: bold; + font-size: 120%; + margin-bottom:0; + color: #990; +} + +tr.closed td +{ + background-color: #ccc; +} + +a:visited, a:link +{ + color: #990; + text-decoration: None; +} +td a:visited, td a:link +{ + display: block; +} +a:visited:hover, a:link:hover +{ + text-decoration: underline; +} +td a:visited:hover, td a:link:hover +{ + color:black; + background-color:#dda; + text-decoration: None; + display: block; +} + +body +{ + font-family: "Verdana"; + font-size:11pt; + background-color: white; +} +.comment +{ +} +.comment table +{ + background-color: transparent; +} +.comment td +{ + background-color: transparent; +} +.comment pre +{ + font-family: "Verdana"; +} +#header +{ + color: black; + font-weight: bold; + background-image: url(/static/images/half-spiral.png); + background-position: right center; + background-repeat: no-repeat; + background-color: #ff0; +} +#header ul.navoption +{ + display: block; + float: right; + margin: 0; + padding-right: 30px; +} +#header li +{ + display: inline; + margin:0; + padding:0; +} +table.insetbox +{ + margin-top: 0.5em; + margin-bottom: 0.5em; +} +.insetbox tr, .insetbox td +{ + margin: 0; + padding: 0; +} +pre.traceback +{ + font-family: Verdana, Ariel, Helvetica, sanserif; +} +tr.even td +{ + background-color: #eee; +} diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-b.png b/Bugs-Everywhere-Web/beweb/static/images/ds-b.png new file mode 100644 index 0000000..790e438 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-b.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-bl.png b/Bugs-Everywhere-Web/beweb/static/images/ds-bl.png new file mode 100644 index 0000000..5b43259 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-bl.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-br.png b/Bugs-Everywhere-Web/beweb/static/images/ds-br.png new file mode 100644 index 0000000..6cfd62c Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-br.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-l.png b/Bugs-Everywhere-Web/beweb/static/images/ds-l.png new file mode 100644 index 0000000..a6ce3ce Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-l.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-r.png b/Bugs-Everywhere-Web/beweb/static/images/ds-r.png new file mode 100644 index 0000000..1ffd6f8 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-r.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-t.png b/Bugs-Everywhere-Web/beweb/static/images/ds-t.png new file mode 100644 index 0000000..0129b0c Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-t.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-tl.png b/Bugs-Everywhere-Web/beweb/static/images/ds-tl.png new file mode 100644 index 0000000..d616b77 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-tl.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds-tr.png b/Bugs-Everywhere-Web/beweb/static/images/ds-tr.png new file mode 100644 index 0000000..18e542e Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds-tr.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds2-b.png b/Bugs-Everywhere-Web/beweb/static/images/ds2-b.png new file mode 100644 index 0000000..05a190e Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds2-b.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/ds2-r.png b/Bugs-Everywhere-Web/beweb/static/images/ds2-r.png new file mode 100644 index 0000000..0c3ea4c Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/ds2-r.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/favicon.ico b/Bugs-Everywhere-Web/beweb/static/images/favicon.ico new file mode 100644 index 0000000..339d09c Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/favicon.ico differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/favicon.png b/Bugs-Everywhere-Web/beweb/static/images/favicon.png new file mode 100644 index 0000000..6dc53ee Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/favicon.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/half-spiral.png b/Bugs-Everywhere-Web/beweb/static/images/half-spiral.png new file mode 100644 index 0000000..cb4b56c Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/half-spiral.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-b.png b/Bugs-Everywhere-Web/beweb/static/images/is-b.png new file mode 100644 index 0000000..25d3cfa Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-b.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-bl.png b/Bugs-Everywhere-Web/beweb/static/images/is-bl.png new file mode 100644 index 0000000..f496223 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-bl.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-br.png b/Bugs-Everywhere-Web/beweb/static/images/is-br.png new file mode 100644 index 0000000..74cbd91 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-br.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-l.png b/Bugs-Everywhere-Web/beweb/static/images/is-l.png new file mode 100644 index 0000000..dd567fa Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-l.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-r.png b/Bugs-Everywhere-Web/beweb/static/images/is-r.png new file mode 100644 index 0000000..9ac4486 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-r.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-t.png b/Bugs-Everywhere-Web/beweb/static/images/is-t.png new file mode 100644 index 0000000..fbb06c8 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-t.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-tl.png b/Bugs-Everywhere-Web/beweb/static/images/is-tl.png new file mode 100644 index 0000000..9336290 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-tl.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/is-tr.png b/Bugs-Everywhere-Web/beweb/static/images/is-tr.png new file mode 100644 index 0000000..de74808 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/is-tr.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/shadows.png b/Bugs-Everywhere-Web/beweb/static/images/shadows.png new file mode 100644 index 0000000..9ddc676 Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/shadows.png differ diff --git a/Bugs-Everywhere-Web/beweb/static/images/spiral.png b/Bugs-Everywhere-Web/beweb/static/images/spiral.png new file mode 100644 index 0000000..b4bcb1e Binary files /dev/null and b/Bugs-Everywhere-Web/beweb/static/images/spiral.png differ diff --git a/Bugs-Everywhere-Web/beweb/templates/__init__.py b/Bugs-Everywhere-Web/beweb/templates/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Bugs-Everywhere-Web/beweb/templates/about.kid b/Bugs-Everywhere-Web/beweb/templates/about.kid new file mode 100644 index 0000000..45d0093 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/templates/about.kid @@ -0,0 +1,23 @@ + + + + + About Bugs Everywhere + + + +

About Bugs Everywhere

+

Bug Everywhere was designed by Aaron Bentley and implemented by Aaron + Bentley and Oleg Romanyshyn. +

+

+ Development is sponsored by + Panoramic Feedback. +

+

+ Bugs Everywhere web site +

+Project List + + diff --git a/Bugs-Everywhere-Web/beweb/templates/bugs.kid b/Bugs-Everywhere-Web/beweb/templates/bugs.kid new file mode 100644 index 0000000..b83a593 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/templates/bugs.kid @@ -0,0 +1,49 @@ + + + + + + + Bugs for $project_name + + + +

Bug list for ${project_name}

+ + +
+ +
IDStatusSeverityAssigned ToCommentsSummary
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${len(list(bug.iter_comment_ids()))}${bug.summary}
+Project list +Toggle closed +
+ +
+
+ + + +
+ + diff --git a/Bugs-Everywhere-Web/beweb/templates/edit_bug.kid b/Bugs-Everywhere-Web/beweb/templates/edit_bug.kid new file mode 100644 index 0000000..c31d660 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/templates/edit_bug.kid @@ -0,0 +1,51 @@ + + + + + + + Edit bug + + + +

Edit bug

+
+ + + + +
StatusSeverityAssigned ToSummary
${select_among("status", active_status+inactive_status, bug.status)}${select_among("severity", severity_levels, bug.severity)}${select_among("assigned", people.keys()+[None], bug.assigned, people)}
+
+ + + + +
From${comment.From}
Date${time_to_str(comment.date)}
+
+ Edit + Reply +
+
+
+ ${show_comment(child, grandchildren)} +
+
+
+
+ ${show_comment(comment, children)} +
+

+

+
+Bug List + + diff --git a/Bugs-Everywhere-Web/beweb/templates/edit_comment.kid b/Bugs-Everywhere-Web/beweb/templates/edit_comment.kid new file mode 100644 index 0000000..551db9d --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/templates/edit_comment.kid @@ -0,0 +1,27 @@ + + + + + + + Edit comment + + + +

Edit comment

+
+ + + +
From${comment.From}
Date${time_to_str(comment.date)}
+