From c783d3767353fe7e8f3e779fa1b651ecabd09b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Schreiner?= Date: Wed, 16 Feb 2011 22:38:41 +0100 Subject: [PATCH] Adds option for marking edits as minor. --- weboob/applications/webcontentedit/webcontentedit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/applications/webcontentedit/webcontentedit.py b/weboob/applications/webcontentedit/webcontentedit.py index 726bfaed..add3ee86 100644 --- a/weboob/applications/webcontentedit/webcontentedit.py +++ b/weboob/applications/webcontentedit/webcontentedit.py @@ -93,7 +93,7 @@ class WebContentEdit(ReplApplication): print 'Contents changed:\n%s' % ('\n'.join(' * %s' % content.id for content in contents)) message = self.ask('Enter a commit message', default='') - + minor = self.ask('Is this a minor edit?', default=False) if not self.ask('Do you want to push?', default=True): return @@ -103,7 +103,7 @@ class WebContentEdit(ReplApplication): sys.stdout.write('Pushing %s...' % content.id) sys.stdout.flush() try: - self.do('push_content', content, message, backends=[content.backend]).wait() + self.do('push_content', content, message, minor=minor, backends=[content.backend]).wait() except CallErrors, e: errors.errors += e.errors sys.stdout.write(' error (content saved in %s)\n' % path)