aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/new.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 18:39:26 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 18:39:26 +0000
commit20a48a1ad3f720d915084d6d139b3790cd4630eb (patch)
tree4b89c9694971033355bb018af36ddbb578024f65 /becommands/new.py
parent51c729fdfd03369e2ad7dc6752034469cfbdf253 (diff)
downloadbugseverywhere-20a48a1ad3f720d915084d6d139b3790cd4630eb.tar.gz
Modularized commands into files
Diffstat (limited to 'becommands/new.py')
-rw-r--r--becommands/new.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/becommands/new.py b/becommands/new.py
new file mode 100644
index 0000000..2e78524
--- /dev/null
+++ b/becommands/new.py
@@ -0,0 +1,13 @@
+from libbe import bugdir, cmdutil, names
+def execute(args):
+ if len(args) != 1:
+ raise cmdutil.UserError("Please supply a summary message")
+ dir = bugdir.tree_root(".")
+ bugs = (dir.list())
+ bug = dir.new_bug()
+ bug.creator = names.creator()
+ bug.severity = "minor"
+ bug.status = "open"
+ bug.summary = args[0]
+
+