FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 09-09-2011, 10:59 AM
Martin Gracik
 
Default Clear the user entry text fields (#736193)

The user is created immediately when pressed forward,
so if we go back, and the text fields are already filled
with the old values, after we press forward again,
firstboot tries to create the user again which results in an error.
If the text fields are cleared out, you can skip creating
the user, because you already have one created.
---
modules/create_user.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/create_user.py b/modules/create_user.py
index d1b9365..1ce4061 100644
--- a/modules/create_user.py
+++ b/modules/create_user.py
@@ -400,7 +400,10 @@ class moduleClass(Module):
self.fullnameEntry.grab_focus()

def initializeUI(self):
- pass
+ self.fullnameEntry.set_text("")
+ self.usernameEntry.set_text("")
+ self.passwordEntry.set_text("")
+ self.confirmEntry.set_text("")

def _runAuthconfig(self, *args):
self.nisFlag = 1
--
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org