mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
Provide more detail when the commit button is not shown.
This commit is contained in:
parent
c38e7d4c4b
commit
2d3b0d725a
2 changed files with 17 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue