diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-11 18:39:26 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-11 18:39:26 +0000 |
commit | 20a48a1ad3f720d915084d6d139b3790cd4630eb (patch) | |
tree | 4b89c9694971033355bb018af36ddbb578024f65 /becommands/new.py | |
parent | 51c729fdfd03369e2ad7dc6752034469cfbdf253 (diff) | |
download | bugseverywhere-20a48a1ad3f720d915084d6d139b3790cd4630eb.tar.gz |
Modularized commands into files
Diffstat (limited to 'becommands/new.py')
-rw-r--r-- | becommands/new.py | 13 |
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] + + |