From: W. Trevor King Date: Sat, 16 Apr 2011 21:20:29 +0000 (-0400) Subject: Temporarily disable writing in `be new` to avoid repeated updates. X-Git-Tag: 1.1.0~210 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35db0a3685d04bca521abe8581a0e95c09ce401a;p=be.git Temporarily disable writing in `be new` to avoid repeated updates. --- 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