Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2d3b0d72
Kaydet (Commit)
2d3b0d72
authored
Ara 23, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Provide more detail when the commit button is not shown.
üst
c38e7d4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
faqconf.py
Tools/faqwiz/faqconf.py
+9
-5
faqwiz.py
Tools/faqwiz/faqwiz.py
+8
-3
No files found.
Tools/faqwiz/faqconf.py
Dosyayı görüntüle @
2d3b0d72
...
...
@@ -49,7 +49,7 @@ entries marked with * were changed within the last 7 days.)
# Version -- don't change unless you edit faqwiz.py
WIZVERSION
=
"1.0.
2
"
# FAQ Wizard version
WIZVERSION
=
"1.0.
3
"
# FAQ Wizard version
# This parameter is normally overwritten with a dynamic value
...
...
@@ -369,9 +369,13 @@ Click this button to commit your changes.
<HR>
"""
NOCOMMIT
=
"""
To commit your changes, please enter a log message, your name, email
addres, and the correct password in the form below.
NOCOMMIT_HEAD
=
"""
To commit your changes, please correct the following errors in the
form below and click the Preview Edit button.
<UL>
"""
NOCOMMIT_TAIL
=
"""
</UL>
<HR>
"""
...
...
@@ -379,7 +383,7 @@ CANTCOMMIT_HEAD = """
Some required information is missing:
<UL>
"""
NEED_PASSWD
=
"<LI>You must provide the correct passwd.
\n
"
NEED_PASSWD
=
"<LI>You must provide the correct passw
or
d.
\n
"
NEED_AUTHOR
=
"<LI>You must enter your name.
\n
"
NEED_EMAIL
=
"<LI>You must enter your email address.
\n
"
NEED_LOG
=
"<LI>You must enter a log message.
\n
"
...
...
Tools/faqwiz/faqwiz.py
Dosyayı görüntüle @
2d3b0d72
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment