diff options
author | Guido van Rossum <guido@python.org> | 1998-12-23 21:33:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-23 21:33:09 (GMT) |
commit | 2d3b0d725ac255c9c9caad7db5ae00489922ccf9 (patch) | |
tree | 1378e347dc9a2aeaffb7c22413ad0d15a3ad67da /Tools/faqwiz/faqwiz.py | |
parent | c38e7d4c4b4d53da5692100d69cec639853b25f0 (diff) | |
download | cpython-2d3b0d725ac255c9c9caad7db5ae00489922ccf9.zip cpython-2d3b0d725ac255c9c9caad7db5ae00489922ccf9.tar.gz cpython-2d3b0d725ac255c9c9caad7db5ae00489922ccf9.tar.bz2 |
Provide more detail when the commit button is not shown.
Diffstat (limited to 'Tools/faqwiz/faqwiz.py')
-rw-r--r-- | Tools/faqwiz/faqwiz.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Tools/faqwiz/faqwiz.py b/Tools/faqwiz/faqwiz.py index 2add159..6e45c6e 100644 --- a/Tools/faqwiz/faqwiz.py +++ b/Tools/faqwiz/faqwiz.py @@ -743,14 +743,20 @@ class FaqWizard: if commit_ok: emit(COMMIT) else: - emit(NOCOMMIT) + emit(NOCOMMIT_HEAD) + self.errordetail() + emit(NOCOMMIT_TAIL) emit(EDITFORM2, self.ui, entry, load_my_cookie()) emit(EDITFORM3) def cantcommit(self): self.prologue(T_CANTCOMMIT) print CANTCOMMIT_HEAD - if not self.ui.passwd: + self.errordetail() + print CANTCOMMIT_TAIL + + def errordetail(self): + if PASSWORD and self.ui.password != PASSWORD: emit(NEED_PASSWD) if not self.ui.log: emit(NEED_LOG) @@ -758,7 +764,6 @@ class FaqWizard: emit(NEED_AUTHOR) if not self.ui.email: emit(NEED_EMAIL) - print CANTCOMMIT_TAIL def commit(self, entry): file = entry.file |