Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
live-installer
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ç
SulinOS
live-installer
Commits
c3c92998
Kaydet (Commit)
c3c92998
authored
Şub 26, 2020
tarafından
Clement Lefebvre
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
UI: User page, focus appropriate widget when a new entry is needed
üst
8659bf9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
gtk_interface.py
usr/lib/live-installer/frontend/gtk_interface.py
+15
-4
No files found.
usr/lib/live-installer/frontend/gtk_interface.py
Dosyayı görüntüle @
c3c92998
...
...
@@ -835,45 +835,56 @@ class InstallerWindow:
elif
(
sel
==
self
.
PAGE_USER
):
errorFound
=
False
errorMessage
=
""
focus_widget
=
None
if
(
self
.
setup
.
real_name
is
None
or
self
.
setup
.
real_name
==
""
):
errorFound
=
True
errorMessage
=
_
(
"Please provide your full name."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_name"
)
elif
(
self
.
setup
.
hostname
is
None
or
self
.
setup
.
hostname
==
""
):
errorFound
=
True
errorMessage
=
_
(
"Please provide a name for your computer."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_hostname"
)
elif
(
self
.
setup
.
username
is
None
or
self
.
setup
.
username
==
""
):
errorFound
=
True
errorMessage
=
_
(
"Please provide a username."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_username"
)
elif
(
self
.
setup
.
password1
is
None
or
self
.
setup
.
password1
==
""
):
errorFound
=
True
errorMessage
=
_
(
"Please provide a password for your user account."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_password"
)
elif
(
self
.
setup
.
password1
!=
self
.
setup
.
password2
):
errorFound
=
True
errorMessage
=
_
(
"Your passwords do not match."
)
elif
(
self
.
setup
.
hostname
is
None
or
self
.
setup
.
hostname
==
""
):
errorFound
=
True
errorMessage
=
_
(
"Please provide a name for your computer."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_confirm"
)
else
:
for
char
in
self
.
setup
.
username
:
if
(
char
.
isupper
()):
errorFound
=
True
errorMessage
=
_
(
"Your username must be lower case."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_username"
)
break
elif
(
char
.
isspace
()):
errorFound
=
True
errorMessage
=
_
(
"Your username may not contain whitespace characters."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_username"
)
break
for
char
in
self
.
setup
.
hostname
:
if
(
char
.
isupper
()):
errorFound
=
True
errorMessage
=
_
(
"The computer's name must be lower case."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_hostname"
)
break
elif
(
char
.
isspace
()):
errorFound
=
True
errorMessage
=
_
(
"The computer's name may not contain whitespace characters."
)
focus_widget
=
self
.
builder
.
get_object
(
"entry_hostname"
)
break
if
(
errorFound
):
WarningDialog
(
_
(
"Installer"
),
errorMessage
)
if
focus_widget
is
not
None
:
focus_widget
.
grab_focus
()
else
:
self
.
activate_page
(
self
.
PAGE_TYPE
)
elif
(
sel
==
self
.
PAGE_TYPE
):
...
...
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