diff options
author | W. Trevor King <wking@drexel.edu> | 2011-04-16 17:20:29 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2011-04-16 17:24:27 -0400 |
commit | 35db0a3685d04bca521abe8581a0e95c09ce401a (patch) | |
tree | 5bb4d8e216144b4bf587118132b97d9fb87eb953 /libbe | |
parent | 36699d8265073403f17afb4294b4dba07f52e88b (diff) | |
download | bugseverywhere-35db0a3685d04bca521abe8581a0e95c09ce401a.tar.gz |
Temporarily disable writing in `be new` to avoid repeated updates.
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/command/new.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbe/command/new.py b/libbe/command/new.py index 763d09a..8bb761a 100644 --- a/libbe/command/new.py +++ b/libbe/command/new.py @@ -104,6 +104,7 @@ class New (libbe.command.Command): else: summary = params['summary'] bugdir = self._get_bugdir() + bugdir.storage.writeable = False bug = bugdir.new_bug(summary=summary.strip()) if params['creator'] != None: bug.creator = params['creator'] @@ -119,6 +120,8 @@ class New (libbe.command.Command): bug.status = params['status'] if params['severity'] != None: bug.severity = params['severity'] + bugdir.storage.writeable = True + bug.save() print >> self.stdout, 'Created bug with ID %s' % bug.id.user() return 0 |