By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1790
Collapse All | Expand All

(-)trinity-tde-guidance-14.0.0~pre110+b8699b34/userconfig/userconfig.py.userconfig (-163 / +166 lines)
Lines 16-26 Link Here
16
#                                                                         #
16
#                                                                         #
17
###########################################################################
17
###########################################################################
18
18
19
import sys
20
from distutils.sysconfig import get_python_lib
21
sys.path.insert(0, get_python_lib(1) + "/sip4_tqt") # Trinity-specific path
22
sys.path.insert(0, get_python_lib(1) + "/python_tqt") # Trinity-specific path
19
from qt import *
23
from qt import *
20
from tdeui import *
24
from tdeui import *
21
from tdecore import *
25
from tdecore import *
22
from tdefile import *
26
from tdefile import *
23
import sys
24
import os.path
27
import os.path
25
import shutil
28
import shutil
26
import unixauthdb
29
import unixauthdb
Lines 37-51 Link Here
37
40
38
###########################################################################
41
###########################################################################
39
def SptimeToQDate(sptime):
42
def SptimeToQDate(sptime):
40
    t = QDateTime()
43
    t = TQDateTime()
41
    t.setTime_t(0)
44
    t.setTime_t(0)
42
    return t.addDays(sptime).date()
45
    return t.addDays(sptime).date()
43
46
44
###########################################################################
47
###########################################################################
45
def QDateToSptime(qdate):
48
def TQDateToSptime(tqdate):
46
    x = QDateTime()
49
    x = TQDateTime()
47
    x.setTime_t(0)
50
    x.setTime_t(0)
48
    return x.daysTo(QDateTime(qdate))
51
    return x.daysTo(TQDateTime(tqdate))
49
52
50
###########################################################################
53
###########################################################################
51
# Try translating this code to C++. I dare ya!
54
# Try translating this code to C++. I dare ya!
Lines 68-75 Link Here
68
            self.setButtons(0)
71
            self.setButtons(0)
69
            self.aboutdata = MakeAboutData()
72
            self.aboutdata = MakeAboutData()
70
73
71
            toplayout = QVBoxLayout( self, 0, KDialog.spacingHint() )
74
            toplayout = TQVBoxLayout( self, 0, KDialog.spacingHint() )
72
            tabcontrol = QTabWidget(self)
75
            tabcontrol = TQTabWidget(self)
73
            toplayout.addWidget(tabcontrol)
76
            toplayout.addWidget(tabcontrol)
74
            toplayout.setStretchFactor(tabcontrol,1)
77
            toplayout.setStretchFactor(tabcontrol,1)
75
78
Lines 92-113 Link Here
92
        # --- User Tab ---
95
        # --- User Tab ---
93
        if standalone:
96
        if standalone:
94
            usershbox = self.addHBoxPage("Users")
97
            usershbox = self.addHBoxPage("Users")
95
            vbox = QVBox(usershbox)
98
            vbox = TQVBox(usershbox)
96
        else:
99
        else:
97
            vbox = QVBox(tabcontrol)
100
            vbox = TQVBox(tabcontrol)
98
            vbox.setMargin(KDialog.marginHint())
101
            vbox.setMargin(KDialog.marginHint())
99
102
100
        vbox.setSpacing(KDialog.spacingHint())
103
        vbox.setSpacing(KDialog.spacingHint())
101
104
102
        hb = QHBox(vbox)
105
        hb = TQHBox(vbox)
103
        hb.setSpacing(KDialog.spacingHint())
106
        hb.setSpacing(KDialog.spacingHint())
104
        vbox.setStretchFactor(hb,0)
107
        vbox.setStretchFactor(hb,0)
105
108
106
        label = QLabel(hb)
109
        label = TQLabel(hb)
107
        label.setPixmap(UserIcon("hi32-user"))
110
        label.setPixmap(UserIcon("hi32-user"))
108
        hb.setStretchFactor(label,0)
111
        hb.setStretchFactor(label,0)
109
112
110
        label = QLabel(i18n("User Accounts:"),hb)
113
        label = TQLabel(i18n("User Accounts:"),hb)
111
        hb.setStretchFactor(label,1)
114
        hb.setStretchFactor(label,1)
112
115
113
        self.userlist = TDEListView(vbox)
116
        self.userlist = TDEListView(vbox)
Lines 115-132 Link Here
115
        self.userlist.addColumn(i18n("Real Name"))
118
        self.userlist.addColumn(i18n("Real Name"))
116
        self.userlist.addColumn(i18n("UID"))
119
        self.userlist.addColumn(i18n("UID"))
117
        self.userlist.setAllColumnsShowFocus(True)
120
        self.userlist.setAllColumnsShowFocus(True)
118
        self.userlist.setSelectionMode(QListView.Single)
121
        self.userlist.setSelectionMode(TQListView.Single)
119
122
120
        self.connect(self.userlist, SIGNAL("selectionChanged(QListViewItem *)"), self.slotListClicked)
123
        self.connect(self.userlist, SIGNAL("selectionChanged(TQListViewItem *)"), self.slotListClicked)
121
        if isroot:
124
        if isroot:
122
            self.connect(self.userlist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyClicked)
125
            self.connect(self.userlist, SIGNAL("doubleClicked(TQListViewItem *)"), self.slotModifyClicked)
123
        self.connect(self.userlist, SIGNAL("contextMenu(TDEListView*,QListViewItem*,const QPoint&)"), self.slotUserContext)
126
        self.connect(self.userlist, SIGNAL("contextMenu(TDEListView*,TQListViewItem*,const TQPoint&)"), self.slotUserContext)
124
127
125
        self.showspecialcheckbox = QCheckBox(i18n("Show system accounts"),vbox)
128
        self.showspecialcheckbox = TQCheckBox(i18n("Show system accounts"),vbox)
126
        vbox.setStretchFactor(self.showspecialcheckbox,0)
129
        vbox.setStretchFactor(self.showspecialcheckbox,0)
127
        self.connect(self.showspecialcheckbox,SIGNAL("toggled(bool)"), self.slotShowSystemToggled)
130
        self.connect(self.showspecialcheckbox,SIGNAL("toggled(bool)"), self.slotShowSystemToggled)
128
131
129
        hbox = QHBox(vbox)
132
        hbox = TQHBox(vbox)
130
        hbox.setSpacing(KDialog.spacingHint())
133
        hbox.setSpacing(KDialog.spacingHint())
131
134
132
        vbox.setStretchFactor(hbox,0)
135
        vbox.setStretchFactor(hbox,0)
Lines 143-185 Link Here
143
        hbox.setStretchFactor(self.deletebutton,1)
146
        hbox.setStretchFactor(self.deletebutton,1)
144
        self.connect(self.deletebutton,SIGNAL("clicked()"),self.slotDeleteClicked)
147
        self.connect(self.deletebutton,SIGNAL("clicked()"),self.slotDeleteClicked)
145
148
146
        detailsbox = QVGroupBox(i18n("Details"),vbox)
149
        detailsbox = TQVGroupBox(i18n("Details"),vbox)
147
        userinfovbox = QWidget(detailsbox)
150
        userinfovbox = TQWidget(detailsbox)
148
151
149
        infogrid = QGridLayout(userinfovbox,3,4)
152
        infogrid = TQGridLayout(userinfovbox,3,4)
150
        infogrid.setSpacing(KDialog.spacingHint())
153
        infogrid.setSpacing(KDialog.spacingHint())
151
154
152
        label = QLabel(i18n("Login Name:"),userinfovbox)
155
        label = TQLabel(i18n("Login Name:"),userinfovbox)
153
        infogrid.addWidget(label,0,0)
156
        infogrid.addWidget(label,0,0)
154
        self.loginnamelabel = KLineEdit("",userinfovbox)
157
        self.loginnamelabel = KLineEdit("",userinfovbox)
155
        self.loginnamelabel.setReadOnly(True)
158
        self.loginnamelabel.setReadOnly(True)
156
        infogrid.addWidget(self.loginnamelabel,0,1)
159
        infogrid.addWidget(self.loginnamelabel,0,1)
157
160
158
        label = QLabel(i18n("Real Name:"),userinfovbox)
161
        label = TQLabel(i18n("Real Name:"),userinfovbox)
159
        infogrid.addWidget(label,0,2)
162
        infogrid.addWidget(label,0,2)
160
        self.realnamelabel = KLineEdit("",userinfovbox)
163
        self.realnamelabel = KLineEdit("",userinfovbox)
161
        self.realnamelabel.setReadOnly(True)
164
        self.realnamelabel.setReadOnly(True)
162
        infogrid.addWidget(self.realnamelabel,0,3)
165
        infogrid.addWidget(self.realnamelabel,0,3)
163
166
164
        label = QLabel(i18n("UID:"),userinfovbox)
167
        label = TQLabel(i18n("UID:"),userinfovbox)
165
        infogrid.addWidget(label,1,0)
168
        infogrid.addWidget(label,1,0)
166
        self.uidlabel = KLineEdit("",userinfovbox)
169
        self.uidlabel = KLineEdit("",userinfovbox)
167
        self.uidlabel.setReadOnly(True)
170
        self.uidlabel.setReadOnly(True)
168
        infogrid.addWidget(self.uidlabel,1,1)
171
        infogrid.addWidget(self.uidlabel,1,1)
169
172
170
        label = QLabel(i18n("Status:"),userinfovbox)
173
        label = TQLabel(i18n("Status:"),userinfovbox)
171
        infogrid.addWidget(label,1,2)
174
        infogrid.addWidget(label,1,2)
172
        self.statuslabel = KLineEdit("",userinfovbox)
175
        self.statuslabel = KLineEdit("",userinfovbox)
173
        self.statuslabel.setReadOnly(True)
176
        self.statuslabel.setReadOnly(True)
174
        infogrid.addWidget(self.statuslabel,1,3)
177
        infogrid.addWidget(self.statuslabel,1,3)
175
178
176
        label = QLabel(i18n("Primary Group:"),userinfovbox)
179
        label = TQLabel(i18n("Primary Group:"),userinfovbox)
177
        infogrid.addWidget(label,2,0)
180
        infogrid.addWidget(label,2,0)
178
        self.primarygrouplabel = KLineEdit("",userinfovbox)
181
        self.primarygrouplabel = KLineEdit("",userinfovbox)
179
        self.primarygrouplabel.setReadOnly(True)
182
        self.primarygrouplabel.setReadOnly(True)
180
        infogrid.addWidget(self.primarygrouplabel,2,1)
183
        infogrid.addWidget(self.primarygrouplabel,2,1)
181
184
182
        label = QLabel(i18n("Secondary Groups:"),userinfovbox)
185
        label = TQLabel(i18n("Secondary Groups:"),userinfovbox)
183
        infogrid.addWidget(label,2,2)
186
        infogrid.addWidget(label,2,2)
184
        self.secondarygrouplabel = KLineEdit("",userinfovbox)
187
        self.secondarygrouplabel = KLineEdit("",userinfovbox)
185
        self.secondarygrouplabel.setReadOnly(True)
188
        self.secondarygrouplabel.setReadOnly(True)
Lines 191-235 Link Here
191
        #--- Groups Tab ---
194
        #--- Groups Tab ---
192
        if standalone:
195
        if standalone:
193
            groupsvbox = self.addVBoxPage(i18n("Groups"))
196
            groupsvbox = self.addVBoxPage(i18n("Groups"))
194
            hb = QHBox(groupsvbox)
197
            hb = TQHBox(groupsvbox)
195
        else:
198
        else:
196
            groupsvbox = QVBox(tabcontrol)
199
            groupsvbox = TQVBox(tabcontrol)
197
            groupsvbox.setMargin(KDialog.marginHint())
200
            groupsvbox.setMargin(KDialog.marginHint())
198
            hb = QHBox(groupsvbox)
201
            hb = TQHBox(groupsvbox)
199
202
200
        topframe = QFrame(groupsvbox)
203
        topframe = TQFrame(groupsvbox)
201
        groupsvbox.setSpacing(KDialog.spacingHint())
204
        groupsvbox.setSpacing(KDialog.spacingHint())
202
        hb.setSpacing(KDialog.spacingHint())
205
        hb.setSpacing(KDialog.spacingHint())
203
        groupsvbox.setStretchFactor(hb,0)
206
        groupsvbox.setStretchFactor(hb,0)
204
207
205
        label = QLabel(hb)
208
        label = TQLabel(hb)
206
        label.setPixmap(UserIcon("hi32-group"))
209
        label.setPixmap(UserIcon("hi32-group"))
207
        hb.setStretchFactor(label,0)
210
        hb.setStretchFactor(label,0)
208
211
209
        label = QLabel(i18n("Groups:"),hb)
212
        label = TQLabel(i18n("Groups:"),hb)
210
        hb.setStretchFactor(label,1)
213
        hb.setStretchFactor(label,1)
211
214
212
        groupsplitter = QSplitter(Qt.Vertical,groupsvbox)
215
        groupsplitter = TQSplitter(TQt.Vertical,groupsvbox)
213
216
214
        self.grouplist = TDEListView(groupsplitter)
217
        self.grouplist = TDEListView(groupsplitter)
215
        self.grouplist.addColumn(i18n("Group Name"))
218
        self.grouplist.addColumn(i18n("Group Name"))
216
        self.grouplist.addColumn(i18n("GID"))
219
        self.grouplist.addColumn(i18n("GID"))
217
        self.grouplist.setAllColumnsShowFocus(True)
220
        self.grouplist.setAllColumnsShowFocus(True)
218
        self.connect(self.grouplist, SIGNAL("selectionChanged(QListViewItem *)"), self.slotGroupListClicked)
221
        self.connect(self.grouplist, SIGNAL("selectionChanged(TQListViewItem *)"), self.slotGroupListClicked)
219
222
220
        if isroot:
223
        if isroot:
221
            self.connect(self.grouplist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyGroupClicked)
224
            self.connect(self.grouplist, SIGNAL("doubleClicked(TQListViewItem *)"), self.slotModifyGroupClicked)
222
        self.connect(self.grouplist, SIGNAL("contextMenu(TDEListView*,QListViewItem*,const QPoint&)"), 
225
        self.connect(self.grouplist, SIGNAL("contextMenu(TDEListView*,TQListViewItem*,const TQPoint&)"), 
223
                self.slotGroupContext)
226
                self.slotGroupContext)
224
227
225
        groupbottomvbox = QVBox(groupsplitter)
228
        groupbottomvbox = TQVBox(groupsplitter)
226
        groupbottomvbox.setSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
229
        groupbottomvbox.setSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
227
230
228
        self.showspecialgroupscheckbox = QCheckBox(i18n("Show system groups"),groupbottomvbox)
231
        self.showspecialgroupscheckbox = TQCheckBox(i18n("Show system groups"),groupbottomvbox)
229
        vbox.setStretchFactor(self.showspecialgroupscheckbox,0)
232
        vbox.setStretchFactor(self.showspecialgroupscheckbox,0)
230
        self.connect(self.showspecialgroupscheckbox,SIGNAL("toggled(bool)"), self.slotShowSystemGroupsToggled)
233
        self.connect(self.showspecialgroupscheckbox,SIGNAL("toggled(bool)"), self.slotShowSystemGroupsToggled)
231
234
232
        hbox = QHBox(groupbottomvbox)
235
        hbox = TQHBox(groupbottomvbox)
233
        hbox.setSpacing(KDialog.spacingHint())
236
        hbox.setSpacing(KDialog.spacingHint())
234
237
235
        groupsvbox.setStretchFactor(hbox,0)
238
        groupsvbox.setStretchFactor(hbox,0)
Lines 252-258 Link Here
252
            for widget in disablebuttons:
255
            for widget in disablebuttons:
253
                widget.setDisabled(True)
256
                widget.setDisabled(True)
254
257
255
        label = QLabel(i18n("Group Members:"),groupbottomvbox)
258
        label = TQLabel(i18n("Group Members:"),groupbottomvbox)
256
        groupsvbox.setStretchFactor(label,0)
259
        groupsvbox.setStretchFactor(label,0)
257
260
258
        self.groupmemberlist = TDEListView(groupbottomvbox)
261
        self.groupmemberlist = TDEListView(groupbottomvbox)
Lines 461-467 Link Here
461
        if userobj.isLocked():
464
        if userobj.isLocked():
462
            lvi.setPixmap(0,UserIcon("hi16-encrypted"))
465
            lvi.setPixmap(0,UserIcon("hi16-encrypted"))
463
        else:
466
        else:
464
            lvi.setPixmap(0,QPixmap())
467
            lvi.setPixmap(0,TQPixmap())
465
468
466
    #######################################################################
469
    #######################################################################
467
    def __selectUser(self,userid):
470
    def __selectUser(self,userid):
Lines 505-511 Link Here
505
        for groupobj in groups:
508
        for groupobj in groups:
506
            gid = groupobj.getGID()
509
            gid = groupobj.getGID()
507
            if self.showsystemgroups or not groupobj.isSystemGroup():
510
            if self.showsystemgroups or not groupobj.isSystemGroup():
508
                lvi = QListViewItem(self.grouplist,groupobj.getGroupname(),unicode(gid))
511
                lvi = TQListViewItem(self.grouplist,groupobj.getGroupname(),unicode(gid))
509
                self.groupidsToListItems[gid] = lvi
512
                self.groupidsToListItems[gid] = lvi
510
                if self.selectedgroupid==gid:
513
                if self.selectedgroupid==gid:
511
                    firstselectedgroupid = gid
514
                    firstselectedgroupid = gid
Lines 528-534 Link Here
528
            self.groupmemberlist.clear()
531
            self.groupmemberlist.clear()
529
            for userobj in members:
532
            for userobj in members:
530
                if userobj!=None:
533
                if userobj!=None:
531
                    lvi = QListViewItem(self.groupmemberlist,userobj.getUsername(),userobj.getRealName(),unicode(userobj.getUID()))
534
                    lvi = TQListViewItem(self.groupmemberlist,userobj.getUsername(),userobj.getRealName(),unicode(userobj.getUID()))
532
            if isroot:
535
            if isroot:
533
                self.deletegroupbutton.setDisabled(groupobj.getGID()==0)
536
                self.deletegroupbutton.setDisabled(groupobj.getGID()==0)
534
537
Lines 610-641 Link Here
610
        self.updatingGUI = True
613
        self.updatingGUI = True
611
614
612
        detailsvbox = self.addHBoxPage(i18n("Details"))
615
        detailsvbox = self.addHBoxPage(i18n("Details"))
613
        detailspace = QWidget(detailsvbox)
616
        detailspace = TQWidget(detailsvbox)
614
617
615
        infogrid = QGridLayout(detailspace,9,2)
618
        infogrid = TQGridLayout(detailspace,9,2)
616
        infogrid.setSpacing(self.spacingHint())
619
        infogrid.setSpacing(self.spacingHint())
617
        infogrid.setColStretch(0,0)
620
        infogrid.setColStretch(0,0)
618
        infogrid.setColStretch(1,1)
621
        infogrid.setColStretch(1,1)
619
622
620
        self.enabledradiogroup = QButtonGroup()
623
        self.enabledradiogroup = TQButtonGroup()
621
        self.enabledradiogroup.setRadioButtonExclusive(True)
624
        self.enabledradiogroup.setRadioButtonExclusive(True)
622
        hb = QHBox(detailspace)
625
        hb = TQHBox(detailspace)
623
        hb.setSpacing(self.spacingHint())
626
        hb.setSpacing(self.spacingHint())
624
        label = QLabel(hb)
627
        label = TQLabel(hb)
625
        label.setPixmap(UserIcon("hi32-identity"))
628
        label.setPixmap(UserIcon("hi32-identity"))
626
        hb.setStretchFactor(label,0)
629
        hb.setStretchFactor(label,0)
627
        label = QLabel(i18n("Status:"),hb)
630
        label = TQLabel(i18n("Status:"),hb)
628
        hb.setStretchFactor(label,1)
631
        hb.setStretchFactor(label,1)
629
        infogrid.addMultiCellWidget(hb,0,1,0,0)
632
        infogrid.addMultiCellWidget(hb,0,1,0,0)
630
633
631
        self.enabledradio = QRadioButton(i18n("Enabled"),detailspace)
634
        self.enabledradio = TQRadioButton(i18n("Enabled"),detailspace)
632
        infogrid.addWidget(self.enabledradio,0,1)
635
        infogrid.addWidget(self.enabledradio,0,1)
633
636
634
        hbox = QHBox(detailspace)
637
        hbox = TQHBox(detailspace)
635
        hbox.setSpacing(self.spacingHint())
638
        hbox.setSpacing(self.spacingHint())
636
        self.disabledradio = QRadioButton(i18n("Disabled"),hbox)
639
        self.disabledradio = TQRadioButton(i18n("Disabled"),hbox)
637
        hbox.setStretchFactor(self.disabledradio,0)
640
        hbox.setStretchFactor(self.disabledradio,0)
638
        label = QLabel(hbox)
641
        label = TQLabel(hbox)
639
        label.setPixmap(UserIcon("hi16-encrypted"))
642
        label.setPixmap(UserIcon("hi16-encrypted"))
640
        hbox.setStretchFactor(label,1)        
643
        hbox.setStretchFactor(label,1)        
641
        infogrid.addWidget(hbox,1,1)
644
        infogrid.addWidget(hbox,1,1)
Lines 643-688 Link Here
643
        self.enabledradiogroup.insert(self.enabledradio,0)
646
        self.enabledradiogroup.insert(self.enabledradio,0)
644
        self.enabledradiogroup.insert(self.disabledradio,1)
647
        self.enabledradiogroup.insert(self.disabledradio,1)
645
648
646
        label = QLabel(i18n("Login Name:"),detailspace)
649
        label = TQLabel(i18n("Login Name:"),detailspace)
647
        infogrid.addWidget(label,2,0)
650
        infogrid.addWidget(label,2,0)
648
        self.loginnameedit = KLineEdit("",detailspace)
651
        self.loginnameedit = KLineEdit("",detailspace)
649
        self.loginnameedit.setValidator(LoginNameValidator(self.loginnameedit))
652
        self.loginnameedit.setValidator(LoginNameValidator(self.loginnameedit))
650
653
651
        infogrid.addWidget(self.loginnameedit,2,1)
654
        infogrid.addWidget(self.loginnameedit,2,1)
652
        self.connect(self.loginnameedit, SIGNAL("textChanged(const QString &)"), self.slotLoginChanged)
655
        self.connect(self.loginnameedit, SIGNAL("textChanged(const TQString &)"), self.slotLoginChanged)
653
656
654
        label = QLabel(i18n("Real Name:"),detailspace)
657
        label = TQLabel(i18n("Real Name:"),detailspace)
655
        infogrid.addWidget(label,3,0)
658
        infogrid.addWidget(label,3,0)
656
        self.realnameedit = KLineEdit("",detailspace)
659
        self.realnameedit = KLineEdit("",detailspace)
657
        self.realnameedit.setValidator(RealUserNameValidator(self.realnameedit))
660
        self.realnameedit.setValidator(RealUserNameValidator(self.realnameedit))
658
661
659
        infogrid.addWidget(self.realnameedit,3,1)
662
        infogrid.addWidget(self.realnameedit,3,1)
660
663
661
        label = QLabel(i18n("User ID:"),detailspace)
664
        label = TQLabel(i18n("User ID:"),detailspace)
662
        infogrid.addWidget(label,4,0)
665
        infogrid.addWidget(label,4,0)
663
        self.uidedit = KLineEdit("",detailspace)
666
        self.uidedit = KLineEdit("",detailspace)
664
        self.uidedit.setValidator(QIntValidator(0,65535,detailspace))
667
        self.uidedit.setValidator(TQIntValidator(0,65535,detailspace))
665
        infogrid.addWidget(self.uidedit,4,1)
668
        infogrid.addWidget(self.uidedit,4,1)
666
669
667
        label = QLabel(i18n("Primary Group:"),detailspace)
670
        label = TQLabel(i18n("Primary Group:"),detailspace)
668
        infogrid.addWidget(label,5,0)
671
        infogrid.addWidget(label,5,0)
669
        self.primarygroupedit = KComboBox(False,detailspace)
672
        self.primarygroupedit = KComboBox(False,detailspace)
670
        infogrid.addWidget(self.primarygroupedit,5,1)
673
        infogrid.addWidget(self.primarygroupedit,5,1)
671
674
672
        label = QLabel(i18n("Home Directory:"),detailspace)
675
        label = TQLabel(i18n("Home Directory:"),detailspace)
673
        infogrid.addWidget(label,7,0)
676
        infogrid.addWidget(label,7,0)
674
677
675
        hbox = QHBox(detailspace)
678
        hbox = TQHBox(detailspace)
676
        hbox.setSpacing(self.spacingHint())
679
        hbox.setSpacing(self.spacingHint())
677
        self.homediredit = KLineEdit("",hbox)
680
        self.homediredit = KLineEdit("",hbox)
678
        hbox.setStretchFactor(self.homediredit,1)
681
        hbox.setStretchFactor(self.homediredit,1)
679
        self.connect(self.homediredit, SIGNAL("textChanged(const QString &)"), self.slotHomeDirChanged)
682
        self.connect(self.homediredit, SIGNAL("textChanged(const TQString &)"), self.slotHomeDirChanged)
680
        self.homedirbutton = KPushButton(i18n("Browse..."),hbox)
683
        self.homedirbutton = KPushButton(i18n("Browse..."),hbox)
681
        hbox.setStretchFactor(self.homedirbutton,0)
684
        hbox.setStretchFactor(self.homedirbutton,0)
682
        self.connect(self.homedirbutton,SIGNAL("clicked()"),self.slotBrowseHomeDirClicked)
685
        self.connect(self.homedirbutton,SIGNAL("clicked()"),self.slotBrowseHomeDirClicked)
683
        infogrid.addWidget(hbox,7,1)
686
        infogrid.addWidget(hbox,7,1)
684
687
685
        label = QLabel(i18n("Shell:"),detailspace)
688
        label = TQLabel(i18n("Shell:"),detailspace)
686
        infogrid.addWidget(label,8,0)
689
        infogrid.addWidget(label,8,0)
687
690
688
        self.shelledit = KComboBox(True,detailspace)
691
        self.shelledit = KComboBox(True,detailspace)
Lines 697-705 Link Here
697
        groupsvbox = self.addHBoxPage(i18n("Privileges and groups"))
700
        groupsvbox = self.addHBoxPage(i18n("Privileges and groups"))
698
701
699
	# Rudd-O now here we create the widget that will hold the group listing, and fill it with the groups.
702
	# Rudd-O now here we create the widget that will hold the group listing, and fill it with the groups.
700
        self.privilegeslistview = QListView(groupsvbox)
703
        self.privilegeslistview = TQListView(groupsvbox)
701
	self.privilegeslistview.addColumn(i18n("Privilege"),-1)
704
	self.privilegeslistview.addColumn(i18n("Privilege"),-1)
702
        self.groupslistview = QListView(groupsvbox)
705
        self.groupslistview = TQListView(groupsvbox)
703
	self.groupslistview.addColumn(i18n("Secondary group"),-1)
706
	self.groupslistview.addColumn(i18n("Secondary group"),-1)
704
	groupsvbox.setStretchFactor(self.privilegeslistview,3)
707
	groupsvbox.setStretchFactor(self.privilegeslistview,3)
705
	groupsvbox.setStretchFactor(self.groupslistview,2)
708
	groupsvbox.setStretchFactor(self.groupslistview,2)
Lines 707-726 Link Here
707
        # Password and Security Tab.
710
        # Password and Security Tab.
708
        passwordvbox = self.addVBoxPage(i18n("Password && Security"))
711
        passwordvbox = self.addVBoxPage(i18n("Password && Security"))
709
712
710
        passwordspace = QWidget(passwordvbox)
713
        passwordspace = TQWidget(passwordvbox)
711
        passwordgrid = QGridLayout(passwordspace,8,3)
714
        passwordgrid = TQGridLayout(passwordspace,8,3)
712
        passwordgrid.setSpacing(self.spacingHint())
715
        passwordgrid.setSpacing(self.spacingHint())
713
        passwordgrid.setColStretch(0,0)
716
        passwordgrid.setColStretch(0,0)
714
        passwordgrid.setColStretch(1,0)
717
        passwordgrid.setColStretch(1,0)
715
        passwordgrid.setColStretch(2,1)
718
        passwordgrid.setColStretch(2,1)
716
        passwordvbox.setStretchFactor(passwordspace,0)
719
        passwordvbox.setStretchFactor(passwordspace,0)
717
720
718
        hb = QHBox(passwordspace)
721
        hb = TQHBox(passwordspace)
719
        hb.setSpacing(self.spacingHint())
722
        hb.setSpacing(self.spacingHint())
720
        label = QLabel(hb)
723
        label = TQLabel(hb)
721
        label.setPixmap(UserIcon("hi32-password"))
724
        label.setPixmap(UserIcon("hi32-password"))
722
        hb.setStretchFactor(label,0)
725
        hb.setStretchFactor(label,0)
723
        label = QLabel(i18n("Password:"),hb)
726
        label = TQLabel(i18n("Password:"),hb)
724
        hb.setStretchFactor(label,1)
727
        hb.setStretchFactor(label,1)
725
        passwordgrid.addWidget(hb,0,0)
728
        passwordgrid.addWidget(hb,0,0)
726
729
Lines 728-751 Link Here
728
        passwordgrid.addWidget(self.passwordedit,0,1)
731
        passwordgrid.addWidget(self.passwordedit,0,1)
729
732
730
        # Last Change
733
        # Last Change
731
        label = QLabel(i18n("Last changed:"),passwordspace)
734
        label = TQLabel(i18n("Last changed:"),passwordspace)
732
        passwordgrid.addWidget(label,1,0)
735
        passwordgrid.addWidget(label,1,0)
733
        self.lastchangelabel = KLineEdit("",passwordspace)
736
        self.lastchangelabel = KLineEdit("",passwordspace)
734
        self.lastchangelabel.setReadOnly(True)
737
        self.lastchangelabel.setReadOnly(True)
735
        passwordgrid.addWidget(self.lastchangelabel,1,1)
738
        passwordgrid.addWidget(self.lastchangelabel,1,1)
736
739
737
        self.validradiogroup = QButtonGroup()
740
        self.validradiogroup = TQButtonGroup()
738
        self.validradiogroup.setRadioButtonExclusive(True)
741
        self.validradiogroup.setRadioButtonExclusive(True)
739
742
740
        # Valid until.
743
        # Valid until.
741
        label = QLabel(i18n("Valid until:"),passwordspace)
744
        label = TQLabel(i18n("Valid until:"),passwordspace)
742
        passwordgrid.addWidget(label,2,0)
745
        passwordgrid.addWidget(label,2,0)
743
        self.validalwaysradio = QRadioButton(i18n("Always"),passwordspace)
746
        self.validalwaysradio = TQRadioButton(i18n("Always"),passwordspace)
744
        passwordgrid.addWidget(self.validalwaysradio,2,1)
747
        passwordgrid.addWidget(self.validalwaysradio,2,1)
745
748
746
        hbox = QHBox(passwordspace)
749
        hbox = TQHBox(passwordspace)
747
        hbox.setSpacing(self.spacingHint())
750
        hbox.setSpacing(self.spacingHint())
748
        self.expireradio = QRadioButton(hbox)
751
        self.expireradio = TQRadioButton(hbox)
749
        hbox.setStretchFactor(self.expireradio,0)
752
        hbox.setStretchFactor(self.expireradio,0)
750
753
751
        self.expiredate = KDateWidget(hbox)
754
        self.expiredate = KDateWidget(hbox)
Lines 757-786 Link Here
757
        self.connect(self.validradiogroup,SIGNAL("clicked(int)"),self.slotValidUntilClicked)
760
        self.connect(self.validradiogroup,SIGNAL("clicked(int)"),self.slotValidUntilClicked)
758
761
759
        # Password Aging & Expiration.
762
        # Password Aging & Expiration.
760
        passwordaginggroup = QVGroupBox(i18n("Password Aging"),passwordvbox)
763
        passwordaginggroup = TQVGroupBox(i18n("Password Aging"),passwordvbox)
761
        passwordaginggroup.setInsideSpacing(self.spacingHint())
764
        passwordaginggroup.setInsideSpacing(self.spacingHint())
762
        passwordvbox.setStretchFactor(passwordaginggroup,0)
765
        passwordvbox.setStretchFactor(passwordaginggroup,0)
763
766
764
        passwordagingwidget = QWidget(passwordaginggroup)
767
        passwordagingwidget = TQWidget(passwordaginggroup)
765
768
766
        passwordaginggrid = QGridLayout(passwordagingwidget,4,3)
769
        passwordaginggrid = TQGridLayout(passwordagingwidget,4,3)
767
        passwordaginggrid.setSpacing(self.spacingHint())
770
        passwordaginggrid.setSpacing(self.spacingHint())
768
771
769
        # [*] Require new password after: [_____5 days]
772
        # [*] Require new password after: [_____5 days]
770
        self.forcepasswordchangecheckbox = QCheckBox(passwordagingwidget)
773
        self.forcepasswordchangecheckbox = TQCheckBox(passwordagingwidget)
771
        self.connect(self.forcepasswordchangecheckbox,SIGNAL("toggled(bool)"),self.slotForcePasswordChangeToggled)
774
        self.connect(self.forcepasswordchangecheckbox,SIGNAL("toggled(bool)"),self.slotForcePasswordChangeToggled)
772
        passwordaginggrid.addWidget(self.forcepasswordchangecheckbox,0,0)
775
        passwordaginggrid.addWidget(self.forcepasswordchangecheckbox,0,0)
773
        label = QLabel(i18n("Require new password after:"),passwordagingwidget)
776
        label = TQLabel(i18n("Require new password after:"),passwordagingwidget)
774
        passwordaginggrid.addWidget(label,0,1) 
777
        passwordaginggrid.addWidget(label,0,1) 
775
        self.maximumpasswordedit = QSpinBox(passwordagingwidget)
778
        self.maximumpasswordedit = TQSpinBox(passwordagingwidget)
776
        self.maximumpasswordedit.setSuffix(i18n(" days"))
779
        self.maximumpasswordedit.setSuffix(i18n(" days"))
777
        self.maximumpasswordedit.setMinValue(1)
780
        self.maximumpasswordedit.setMinValue(1)
778
        self.maximumpasswordedit.setMaxValue(365*5)
781
        self.maximumpasswordedit.setMaxValue(365*5)
779
        passwordaginggrid.addWidget(self.maximumpasswordedit,0,2)
782
        passwordaginggrid.addWidget(self.maximumpasswordedit,0,2)
780
783
781
        label = QLabel(i18n("Warn before password expires:"),passwordagingwidget)
784
        label = TQLabel(i18n("Warn before password expires:"),passwordagingwidget)
782
        passwordaginggrid.addWidget(label,1,1)
785
        passwordaginggrid.addWidget(label,1,1)
783
        self.warningedit = QSpinBox(passwordagingwidget)
786
        self.warningedit = TQSpinBox(passwordagingwidget)
784
        self.warningedit.setPrefix(i18n("After "))
787
        self.warningedit.setPrefix(i18n("After "))
785
        self.warningedit.setSuffix(i18n(" days"))
788
        self.warningedit.setSuffix(i18n(" days"))
786
        self.warningedit.setMinValue(0)
789
        self.warningedit.setMinValue(0)
Lines 788-796 Link Here
788
        self.warningedit.setSpecialValueText(i18n("Never"))
791
        self.warningedit.setSpecialValueText(i18n("Never"))
789
        passwordaginggrid.addWidget(self.warningedit,1,2)
792
        passwordaginggrid.addWidget(self.warningedit,1,2)
790
793
791
        label = QLabel(i18n("Disable account after password expires:"),passwordagingwidget)
794
        label = TQLabel(i18n("Disable account after password expires:"),passwordagingwidget)
792
        passwordaginggrid.addWidget(label,2,1)
795
        passwordaginggrid.addWidget(label,2,1)
793
        self.disableexpireedit = QSpinBox(passwordagingwidget)
796
        self.disableexpireedit = TQSpinBox(passwordagingwidget)
794
        self.disableexpireedit.setPrefix(i18n("After "))
797
        self.disableexpireedit.setPrefix(i18n("After "))
795
        self.disableexpireedit.setSuffix(i18n(" days"))
798
        self.disableexpireedit.setSuffix(i18n(" days"))
796
        self.disableexpireedit.setMinValue(0)
799
        self.disableexpireedit.setMinValue(0)
Lines 798-814 Link Here
798
        self.disableexpireedit.setSpecialValueText(i18n("Never"))
801
        self.disableexpireedit.setSpecialValueText(i18n("Never"))
799
        passwordaginggrid.addWidget(self.disableexpireedit,2,2)
802
        passwordaginggrid.addWidget(self.disableexpireedit,2,2)
800
803
801
        self.enforcepasswordminagecheckbox = QCheckBox(passwordagingwidget)
804
        self.enforcepasswordminagecheckbox = TQCheckBox(passwordagingwidget)
802
        self.connect(self.enforcepasswordminagecheckbox,SIGNAL("toggled(bool)"),self.slotEnforePasswordAgeToggled)
805
        self.connect(self.enforcepasswordminagecheckbox,SIGNAL("toggled(bool)"),self.slotEnforePasswordAgeToggled)
803
        passwordaginggrid.addWidget(self.enforcepasswordminagecheckbox,3,0)
806
        passwordaginggrid.addWidget(self.enforcepasswordminagecheckbox,3,0)
804
807
805
        label = QLabel(i18n("Enforce minimum password age:"),passwordagingwidget)
808
        label = TQLabel(i18n("Enforce minimum password age:"),passwordagingwidget)
806
        passwordaginggrid.addWidget(label,3,1)
809
        passwordaginggrid.addWidget(label,3,1)
807
        self.minimumpasswordedit = QSpinBox(passwordagingwidget)
810
        self.minimumpasswordedit = TQSpinBox(passwordagingwidget)
808
        self.minimumpasswordedit.setSuffix(i18n(" days"))
811
        self.minimumpasswordedit.setSuffix(i18n(" days"))
809
        passwordaginggrid.addWidget(self.minimumpasswordedit,3,2)
812
        passwordaginggrid.addWidget(self.minimumpasswordedit,3,2)
810
813
811
        spacer = QWidget(passwordvbox)
814
        spacer = TQWidget(passwordvbox)
812
        passwordvbox.setStretchFactor(spacer,1)
815
        passwordvbox.setStretchFactor(spacer,1)
813
816
814
        self.homedirdialog = KDirSelectDialog("/",True,self,"Select Home Directory",True)
817
        self.homedirdialog = KDirSelectDialog("/",True,self,"Select Home Directory",True)
Lines 834-840 Link Here
834
		else:
837
		else:
835
			name = unicode(group).encode(locale.getpreferredencoding())
838
			name = unicode(group).encode(locale.getpreferredencoding())
836
			wid = self.groupslistview
839
			wid = self.groupslistview
837
		self.secondarygroupcheckboxes[group] = QCheckListItem(wid,name,QCheckListItem.CheckBox)
840
		self.secondarygroupcheckboxes[group] = TQCheckListItem(wid,name,TQCheckListItem.CheckBox)
838
841
839
    ########################################################################
842
    ########################################################################
840
    def showEditUser(self,userid):
843
    def showEditUser(self,userid):
Lines 849-856 Link Here
849
	# Rudd-O: now here we tick the appropriate group listing checkbox, and hide the currently active primary group of the user.  We are repopulating because if the user to edit changes, we need to hide the user's secondary group.  FIXME we should repopulate the groups privileges list when the primary group is changed in the other tab -- that is, on the change slot of the primary group drop down.
852
	# Rudd-O: now here we tick the appropriate group listing checkbox, and hide the currently active primary group of the user.  We are repopulating because if the user to edit changes, we need to hide the user's secondary group.  FIXME we should repopulate the groups privileges list when the primary group is changed in the other tab -- that is, on the change slot of the primary group drop down.
850
	self._repopulateGroupsPrivileges(excludegroups=[self.userobj.getPrimaryGroup()])
853
	self._repopulateGroupsPrivileges(excludegroups=[self.userobj.getPrimaryGroup()])
851
	for group,checkbox in self.secondarygroupcheckboxes.items():
854
	for group,checkbox in self.secondarygroupcheckboxes.items():
852
		if group in self.selectedgroups: checkbox.setState(QCheckListItem.On)
855
		if group in self.selectedgroups: checkbox.setState(TQCheckListItem.On)
853
		else: checkbox.setState(QCheckListItem.Off)
856
		else: checkbox.setState(TQCheckListItem.Off)
854
	
857
	
855
	self.originalgroups = self.selectedgroups[:]
858
	self.originalgroups = self.selectedgroups[:]
856
        self.selectedgroups.sort()
859
        self.selectedgroups.sort()
Lines 858-864 Link Here
858
        self.uidedit.setReadOnly(True)
861
        self.uidedit.setReadOnly(True)
859
        self.updatingGUI = False
862
        self.updatingGUI = False
860
        self.homedirectoryislinked = False
863
        self.homedirectoryislinked = False
861
        if self.exec_loop()==QDialog.Accepted:
864
        if self.exec_loop()==TQDialog.Accepted:
862
            self.__updateObjectFromGUI(self.userobj)
865
            self.__updateObjectFromGUI(self.userobj)
863
            # Set the password.
866
            # Set the password.
864
            if self.passwordedit.password()!="":
867
            if self.passwordedit.password()!="":
Lines 896-903 Link Here
896
	# Rudd-O FIXME: now here we tick the proper groups that should be allowed.  Now it selects what userconfig selected before.  FIXME consider adding a drop down that will select the appropriate profile Limited User, Advanced User or Administrator (and see if there is a config file where these profiles can be read).    We are repopulating because if the user to edit changes, we need to hide the user's secondary group.  FIXME we should repopulate the groups privileges list when the primary group is changed in the other tab -- that is, on the change slot of the primary group drop down.
899
	# Rudd-O FIXME: now here we tick the proper groups that should be allowed.  Now it selects what userconfig selected before.  FIXME consider adding a drop down that will select the appropriate profile Limited User, Advanced User or Administrator (and see if there is a config file where these profiles can be read).    We are repopulating because if the user to edit changes, we need to hide the user's secondary group.  FIXME we should repopulate the groups privileges list when the primary group is changed in the other tab -- that is, on the change slot of the primary group drop down.
897
	self._repopulateGroupsPrivileges()
900
	self._repopulateGroupsPrivileges()
898
	for group,checkbox in self.secondarygroupcheckboxes.items():
901
	for group,checkbox in self.secondarygroupcheckboxes.items():
899
		if group in self.selectedgroups: checkbox.setState(QCheckListItem.On)
902
		if group in self.selectedgroups: checkbox.setState(TQCheckListItem.On)
900
		else: checkbox.setState(QCheckListItem.Off)
903
		else: checkbox.setState(TQCheckListItem.Off)
901
	
904
	
902
	self.userobj.setHomeDirectory(homedir)
905
	self.userobj.setHomeDirectory(homedir)
903
        self.homediredit.setText(homedir)
906
        self.homediredit.setText(homedir)
Lines 919-925 Link Here
919
        self.updatingGUI = False
922
        self.updatingGUI = False
920
        self.homedirectoryislinked = True
923
        self.homedirectoryislinked = True
921
        self.passwordedit.erase()
924
        self.passwordedit.erase()
922
        if self.exec_loop()==QDialog.Accepted:
925
        if self.exec_loop()==TQDialog.Accepted:
923
            self.__updateObjectFromGUI(self.userobj)
926
            self.__updateObjectFromGUI(self.userobj)
924
927
925
            makehomedir = True
928
            makehomedir = True
Lines 1114-1120 Link Here
1114
            userobj.setExpirationDate(None)
1117
            userobj.setExpirationDate(None)
1115
        else:
1118
        else:
1116
            # Password will expire at...
1119
            # Password will expire at...
1117
            userobj.setExpirationDate(QDateToSptime(self.expiredate.date()))
1120
            userobj.setExpirationDate(TQDateToSptime(self.expiredate.date()))
1118
1121
1119
        if self.forcepasswordchangecheckbox.isChecked():
1122
        if self.forcepasswordchangecheckbox.isChecked():
1120
            userobj.setMaximumPasswordAge(self.maximumpasswordedit.value())
1123
            userobj.setMaximumPasswordAge(self.maximumpasswordedit.value())
Lines 1138-1144 Link Here
1138
        fileurl = KURL()
1141
        fileurl = KURL()
1139
        fileurl.setPath(self.homediredit.text())
1142
        fileurl.setPath(self.homediredit.text())
1140
        self.homedirdialog.setCurrentURL(fileurl)
1143
        self.homedirdialog.setCurrentURL(fileurl)
1141
        if self.homedirdialog.exec_loop()==QDialog.Accepted:
1144
        if self.homedirdialog.exec_loop()==TQDialog.Accepted:
1142
            self.homediredit.setText(self.homedirdialog.url().path())
1145
            self.homediredit.setText(self.homedirdialog.url().path())
1143
            self.homedirectoryislinked = False
1146
            self.homedirectoryislinked = False
1144
1147
Lines 1194-1220 Link Here
1194
1197
1195
1198
1196
###########################################################################
1199
###########################################################################
1197
class LoginNameValidator(QValidator):
1200
class LoginNameValidator(TQValidator):
1198
    def __init__(self,parent):
1201
    def __init__(self,parent):
1199
        QValidator.__init__(self,parent)
1202
        TQValidator.__init__(self,parent)
1200
1203
1201
    #######################################################################
1204
    #######################################################################
1202
    def validate(self,inputstr,pos):
1205
    def validate(self,inputstr,pos):
1203
        instr = unicode(inputstr)
1206
        instr = unicode(inputstr)
1204
        if len(instr)==0:
1207
        if len(instr)==0:
1205
            return (QValidator.Intermediate,pos)
1208
            return (TQValidator.Intermediate,pos)
1206
        for c in instr:
1209
        for c in instr:
1207
            if ord(c)<0x20 or ord(c)>0x7f or c.isspace() or c==":" or c=="," or c==".":
1210
            if ord(c)<0x20 or ord(c)>0x7f or c.isspace() or c==":" or c=="," or c==".":
1208
                return (QValidator.Invalid,pos)
1211
                return (TQValidator.Invalid,pos)
1209
1212
1210
        # Try to encode this string in the system encoding.
1213
        # Try to encode this string in the system encoding.
1211
        try:
1214
        try:
1212
            instr.encode(locale.getpreferredencoding())
1215
            instr.encode(locale.getpreferredencoding())
1213
        except UnicodeEncodeError:
1216
        except UnicodeEncodeError:
1214
            # won't encode -> reject it.
1217
            # won't encode -> reject it.
1215
            return (QValidator.Invalid,pos)
1218
            return (TQValidator.Invalid,pos)
1216
1219
1217
        return (QValidator.Acceptable,pos)
1220
        return (TQValidator.Acceptable,pos)
1218
1221
1219
    #######################################################################
1222
    #######################################################################
1220
    def fixup(self,inputstr):
1223
    def fixup(self,inputstr):
Lines 1230-1254 Link Here
1230
            return newstr
1233
            return newstr
1231
1234
1232
###########################################################################
1235
###########################################################################
1233
class RealUserNameValidator(QValidator):
1236
class RealUserNameValidator(TQValidator):
1234
    def __init__(self,parent):
1237
    def __init__(self,parent):
1235
        QValidator.__init__(self,parent)
1238
        TQValidator.__init__(self,parent)
1236
1239
1237
    #######################################################################
1240
    #######################################################################
1238
    def validate(self,inputstr,pos):
1241
    def validate(self,inputstr,pos):
1239
        instr = unicode(inputstr)
1242
        instr = unicode(inputstr)
1240
        for c in instr:
1243
        for c in instr:
1241
            if c==":":
1244
            if c==":":
1242
                return (QValidator.Invalid,pos)
1245
                return (TQValidator.Invalid,pos)
1243
1246
1244
        # Try to encode this string in the system encoding.
1247
        # Try to encode this string in the system encoding.
1245
        try:
1248
        try:
1246
            instr.encode(locale.getpreferredencoding())
1249
            instr.encode(locale.getpreferredencoding())
1247
        except UnicodeEncodeError:
1250
        except UnicodeEncodeError:
1248
            # won't encode -> reject it.
1251
            # won't encode -> reject it.
1249
            return (QValidator.Invalid,pos)
1252
            return (TQValidator.Invalid,pos)
1250
1253
1251
        return (QValidator.Acceptable,pos)
1254
        return (TQValidator.Acceptable,pos)
1252
1255
1253
    #######################################################################
1256
    #######################################################################
1254
    def fixup(self,inputstr):
1257
    def fixup(self,inputstr):
Lines 1259-1279 Link Here
1259
    def __init__(self,parent,caption,leftlabel,rightlabel):
1262
    def __init__(self,parent,caption,leftlabel,rightlabel):
1260
        KDialogBase.__init__(self,parent,None,True,caption,KDialogBase.Ok|KDialogBase.Cancel, KDialogBase.Cancel)
1263
        KDialogBase.__init__(self,parent,None,True,caption,KDialogBase.Ok|KDialogBase.Cancel, KDialogBase.Cancel)
1261
1264
1262
        self.tophbox = QHBox(self)
1265
        self.tophbox = TQHBox(self)
1263
        self.setMainWidget(self.tophbox)
1266
        self.setMainWidget(self.tophbox)
1264
        self.tophbox.setSpacing(self.spacingHint())
1267
        self.tophbox.setSpacing(self.spacingHint())
1265
        # Available Groups
1268
        # Available Groups
1266
        vbox = QVBox(self.tophbox)
1269
        vbox = TQVBox(self.tophbox)
1267
        self.tophbox.setStretchFactor(vbox,1)
1270
        self.tophbox.setStretchFactor(vbox,1)
1268
        label = QLabel(leftlabel,vbox)
1271
        label = TQLabel(leftlabel,vbox)
1269
        vbox.setStretchFactor(label,0)
1272
        vbox.setStretchFactor(label,0)
1270
        self.availablelist = TDEListBox(vbox)
1273
        self.availablelist = TDEListBox(vbox)
1271
        vbox.setStretchFactor(self.availablelist,1)
1274
        vbox.setStretchFactor(self.availablelist,1)
1272
1275
1273
        # ->, <- Buttons
1276
        # ->, <- Buttons
1274
        vbox = QVBox(self.tophbox)
1277
        vbox = TQVBox(self.tophbox)
1275
        self.tophbox.setStretchFactor(vbox,0)
1278
        self.tophbox.setStretchFactor(vbox,0)
1276
        spacer = QWidget(vbox);
1279
        spacer = TQWidget(vbox);
1277
        vbox.setStretchFactor(spacer,1)
1280
        vbox.setStretchFactor(spacer,1)
1278
        self.addbutton = KPushButton(i18n("Add ->"),vbox)
1281
        self.addbutton = KPushButton(i18n("Add ->"),vbox)
1279
        self.connect(self.addbutton,SIGNAL("clicked()"),self.slotAddClicked)
1282
        self.connect(self.addbutton,SIGNAL("clicked()"),self.slotAddClicked)
Lines 1281-1293 Link Here
1281
        self.removebutton = KPushButton(i18n("<- Remove"),vbox)
1284
        self.removebutton = KPushButton(i18n("<- Remove"),vbox)
1282
        self.connect(self.removebutton,SIGNAL("clicked()"),self.slotRemoveClicked)
1285
        self.connect(self.removebutton,SIGNAL("clicked()"),self.slotRemoveClicked)
1283
        vbox.setStretchFactor(self.removebutton,0)
1286
        vbox.setStretchFactor(self.removebutton,0)
1284
        spacer = QWidget(vbox);
1287
        spacer = TQWidget(vbox);
1285
        vbox.setStretchFactor(spacer,1)
1288
        vbox.setStretchFactor(spacer,1)
1286
1289
1287
        # Selected Groups
1290
        # Selected Groups
1288
        vbox = QVBox(self.tophbox)
1291
        vbox = TQVBox(self.tophbox)
1289
        self.tophbox.setStretchFactor(vbox,1)
1292
        self.tophbox.setStretchFactor(vbox,1)
1290
        label = QLabel(rightlabel,vbox)
1293
        label = TQLabel(rightlabel,vbox)
1291
        vbox.setStretchFactor(label,0)
1294
        vbox.setStretchFactor(label,0)
1292
        self.selectedlist = TDEListBox(vbox)
1295
        self.selectedlist = TDEListBox(vbox)
1293
        vbox.setStretchFactor(self.selectedlist,1)
1296
        vbox.setStretchFactor(self.selectedlist,1)
Lines 1311-1317 Link Here
1311
        self._selectFirstSelected()
1314
        self._selectFirstSelected()
1312
        self.removebutton.setDisabled(self.selectedlist.selectedItem()==None)
1315
        self.removebutton.setDisabled(self.selectedlist.selectedItem()==None)
1313
1316
1314
        if self.exec_loop()==QDialog.Accepted:
1317
        if self.exec_loop()==TQDialog.Accepted:
1315
            newlist = []
1318
            newlist = []
1316
            for i in range(self.selectedlist.count()):
1319
            for i in range(self.selectedlist.count()):
1317
                newlist.append(unicode(self.selectedlist.item(i).text()))
1320
                newlist.append(unicode(self.selectedlist.item(i).text()))
Lines 1356-1411 Link Here
1356
###########################################################################
1359
###########################################################################
1357
class UserDeleteDialog(KDialog):
1360
class UserDeleteDialog(KDialog):
1358
    def __init__(self,parent,admincontext):
1361
    def __init__(self,parent,admincontext):
1359
        KDialog.__init__(self,parent,"Delete user dialog",True,Qt.WType_Dialog)
1362
        KDialog.__init__(self,parent,"Delete user dialog",True,TQt.WType_Dialog)
1360
        self.setCaption(i18n("Delete User Account"))
1363
        self.setCaption(i18n("Delete User Account"))
1361
        self.admincontext = admincontext
1364
        self.admincontext = admincontext
1362
        self.updatingGUI = True
1365
        self.updatingGUI = True
1363
1366
1364
        toplayout = QVBoxLayout(self)
1367
        toplayout = TQVBoxLayout(self)
1365
        toplayout.setSpacing(self.spacingHint())
1368
        toplayout.setSpacing(self.spacingHint())
1366
        toplayout.setMargin(self.marginHint())
1369
        toplayout.setMargin(self.marginHint())
1367
1370
1368
        contentbox = QHBox(self)
1371
        contentbox = TQHBox(self)
1369
        contentbox.setSpacing(self.spacingHint())
1372
        contentbox.setSpacing(self.spacingHint())
1370
        toplayout.addWidget(contentbox)
1373
        toplayout.addWidget(contentbox)
1371
        toplayout.setStretchFactor(contentbox,1)
1374
        toplayout.setStretchFactor(contentbox,1)
1372
1375
1373
        label = QLabel(contentbox)
1376
        label = TQLabel(contentbox)
1374
        label.setPixmap(TDEGlobal.iconLoader().loadIcon("messagebox_warning", TDEIcon.NoGroup, TDEIcon.SizeMedium,
1377
        label.setPixmap(TDEGlobal.iconLoader().loadIcon("messagebox_warning", TDEIcon.NoGroup, TDEIcon.SizeMedium,
1375
            TDEIcon.DefaultState, None, True))
1378
            TDEIcon.DefaultState, None, True))
1376
        contentbox.setStretchFactor(label,0)
1379
        contentbox.setStretchFactor(label,0)
1377
1380
1378
        textbox = QVBox(contentbox)
1381
        textbox = TQVBox(contentbox)
1379
1382
1380
        textbox.setSpacing(self.spacingHint())
1383
        textbox.setSpacing(self.spacingHint())
1381
        textbox.setMargin(self.marginHint())
1384
        textbox.setMargin(self.marginHint())
1382
1385
1383
        self.usernamelabel = QLabel("",textbox)
1386
        self.usernamelabel = TQLabel("",textbox)
1384
        textbox.setStretchFactor(self.usernamelabel,0)
1387
        textbox.setStretchFactor(self.usernamelabel,0)
1385
1388
1386
        # Remove directory checkbox.
1389
        # Remove directory checkbox.
1387
        self.deletedirectorycheckbox = QCheckBox(i18n("Delete home directory ()"),textbox)
1390
        self.deletedirectorycheckbox = TQCheckBox(i18n("Delete home directory ()"),textbox)
1388
        textbox.setStretchFactor(self.deletedirectorycheckbox,0)
1391
        textbox.setStretchFactor(self.deletedirectorycheckbox,0)
1389
1392
1390
        # Delete the User's private group.
1393
        # Delete the User's private group.
1391
        self.deletegroupcheckbox = QCheckBox(i18n("Delete group ()"),textbox)
1394
        self.deletegroupcheckbox = TQCheckBox(i18n("Delete group ()"),textbox)
1392
        textbox.setStretchFactor(self.deletegroupcheckbox ,0)
1395
        textbox.setStretchFactor(self.deletegroupcheckbox ,0)
1393
1396
1394
        # Buttons
1397
        # Buttons
1395
        buttonbox = QHBox(self)
1398
        buttonbox = TQHBox(self)
1396
        toplayout.addWidget(buttonbox)
1399
        toplayout.addWidget(buttonbox)
1397
1400
1398
        buttonbox.setSpacing(self.spacingHint())
1401
        buttonbox.setSpacing(self.spacingHint())
1399
        toplayout.setStretchFactor(buttonbox,0)
1402
        toplayout.setStretchFactor(buttonbox,0)
1400
1403
1401
        spacer = QWidget(buttonbox)
1404
        spacer = TQWidget(buttonbox)
1402
        buttonbox.setStretchFactor(spacer,1)
1405
        buttonbox.setStretchFactor(spacer,1)
1403
1406
1404
        okbutton = QPushButton(i18n("OK"),buttonbox)
1407
        okbutton = TQPushButton(i18n("OK"),buttonbox)
1405
        buttonbox.setStretchFactor(okbutton,0)
1408
        buttonbox.setStretchFactor(okbutton,0)
1406
        self.connect(okbutton,SIGNAL("clicked()"),self.slotOkClicked)
1409
        self.connect(okbutton,SIGNAL("clicked()"),self.slotOkClicked)
1407
1410
1408
        cancelbutton = QPushButton(i18n("Cancel"),buttonbox)
1411
        cancelbutton = TQPushButton(i18n("Cancel"),buttonbox)
1409
        cancelbutton.setDefault(True)
1412
        cancelbutton.setDefault(True)
1410
        buttonbox.setStretchFactor(cancelbutton,0)
1413
        buttonbox.setStretchFactor(cancelbutton,0)
1411
        self.connect(cancelbutton,SIGNAL("clicked()"),self.slotCancelClicked)
1414
        self.connect(cancelbutton,SIGNAL("clicked()"),self.slotCancelClicked)
Lines 1420-1426 Link Here
1420
        primarygroupname = primarygroupobj.getGroupname()
1423
        primarygroupname = primarygroupobj.getGroupname()
1421
        self.deletegroupcheckbox.setText(i18n("Delete group '%1' (%2)").arg(primarygroupname).arg(primarygroupobj.getGID()))
1424
        self.deletegroupcheckbox.setText(i18n("Delete group '%1' (%2)").arg(primarygroupname).arg(primarygroupobj.getGID()))
1422
        self.deletegroupcheckbox.setChecked(len(primarygroupobj.getUsers())==1)
1425
        self.deletegroupcheckbox.setChecked(len(primarygroupobj.getUsers())==1)
1423
        if self.exec_loop()==QDialog.Accepted:
1426
        if self.exec_loop()==TQDialog.Accepted:
1424
            self.admincontext.removeUser(userobj)
1427
            self.admincontext.removeUser(userobj)
1425
            if self.deletedirectorycheckbox.isChecked():
1428
            if self.deletedirectorycheckbox.isChecked():
1426
                self.admincontext.removeHomeDirectory(userobj)
1429
                self.admincontext.removeHomeDirectory(userobj)
Lines 1446-1507 Link Here
1446
    OK_REPLACE = 2
1449
    OK_REPLACE = 2
1447
1450
1448
    def __init__(self,parent):
1451
    def __init__(self,parent):
1449
        KDialog.__init__(self,parent,"Create home directory",True,Qt.WType_Dialog)
1452
        KDialog.__init__(self,parent,"Create home directory",True,TQt.WType_Dialog)
1450
        self.setCaption(i18n("Create home directory"))
1453
        self.setCaption(i18n("Create home directory"))
1451
        self.updatingGUI = True
1454
        self.updatingGUI = True
1452
1455
1453
        toplayout = QVBoxLayout(self)
1456
        toplayout = TQVBoxLayout(self)
1454
        toplayout.setSpacing(self.spacingHint())
1457
        toplayout.setSpacing(self.spacingHint())
1455
        toplayout.setMargin(self.marginHint())
1458
        toplayout.setMargin(self.marginHint())
1456
1459
1457
        contentbox = QHBox(self)
1460
        contentbox = TQHBox(self)
1458
        contentbox.setSpacing(self.spacingHint())
1461
        contentbox.setSpacing(self.spacingHint())
1459
        toplayout.addWidget(contentbox)
1462
        toplayout.addWidget(contentbox)
1460
        toplayout.setStretchFactor(contentbox,1)
1463
        toplayout.setStretchFactor(contentbox,1)
1461
1464
1462
        label = QLabel(contentbox)
1465
        label = TQLabel(contentbox)
1463
        label.setPixmap(TDEGlobal.iconLoader().loadIcon("messagebox_warning", TDEIcon.NoGroup, TDEIcon.SizeMedium,
1466
        label.setPixmap(TDEGlobal.iconLoader().loadIcon("messagebox_warning", TDEIcon.NoGroup, TDEIcon.SizeMedium,
1464
            TDEIcon.DefaultState, None, True))
1467
            TDEIcon.DefaultState, None, True))
1465
        contentbox.setStretchFactor(label,0)
1468
        contentbox.setStretchFactor(label,0)
1466
1469
1467
        textbox = QVBox(contentbox)
1470
        textbox = TQVBox(contentbox)
1468
1471
1469
        textbox.setSpacing(self.spacingHint())
1472
        textbox.setSpacing(self.spacingHint())
1470
        textbox.setMargin(self.marginHint())
1473
        textbox.setMargin(self.marginHint())
1471
1474
1472
        # "%dir was selected as the home directory for %user. This directory already exists. Shall I:."
1475
        # "%dir was selected as the home directory for %user. This directory already exists. Shall I:."
1473
        self.toplabel = QLabel("",textbox)
1476
        self.toplabel = TQLabel("",textbox)
1474
        textbox.setStretchFactor(self.toplabel,0)
1477
        textbox.setStretchFactor(self.toplabel,0)
1475
1478
1476
        self.radiogroup = QButtonGroup()
1479
        self.radiogroup = TQButtonGroup()
1477
        self.radiogroup.setRadioButtonExclusive(True)
1480
        self.radiogroup.setRadioButtonExclusive(True)
1478
1481
1479
        # Use Existing home directory radio button.
1482
        # Use Existing home directory radio button.
1480
        self.usehomedirectoryradio = QRadioButton(i18n("Use the existing directory without changing it."),textbox)
1483
        self.usehomedirectoryradio = TQRadioButton(i18n("Use the existing directory without changing it."),textbox)
1481
        textbox.setStretchFactor(self.usehomedirectoryradio,0)
1484
        textbox.setStretchFactor(self.usehomedirectoryradio,0)
1482
1485
1483
        # Replace home directory radio button
1486
        # Replace home directory radio button
1484
        self.replacehomedirectoryradio = QRadioButton(i18n("Delete the directory and replace it with a new home directory."),textbox)
1487
        self.replacehomedirectoryradio = TQRadioButton(i18n("Delete the directory and replace it with a new home directory."),textbox)
1485
        textbox.setStretchFactor(self.replacehomedirectoryradio ,0)
1488
        textbox.setStretchFactor(self.replacehomedirectoryradio ,0)
1486
1489
1487
        self.radiogroup.insert(self.usehomedirectoryradio,0)
1490
        self.radiogroup.insert(self.usehomedirectoryradio,0)
1488
        self.radiogroup.insert(self.replacehomedirectoryradio,1)
1491
        self.radiogroup.insert(self.replacehomedirectoryradio,1)
1489
1492
1490
        # Buttons
1493
        # Buttons
1491
        buttonbox = QHBox(self)
1494
        buttonbox = TQHBox(self)
1492
        toplayout.addWidget(buttonbox)
1495
        toplayout.addWidget(buttonbox)
1493
1496
1494
        buttonbox.setSpacing(self.spacingHint())
1497
        buttonbox.setSpacing(self.spacingHint())
1495
        toplayout.setStretchFactor(buttonbox,0)
1498
        toplayout.setStretchFactor(buttonbox,0)
1496
1499
1497
        spacer = QWidget(buttonbox)
1500
        spacer = TQWidget(buttonbox)
1498
        buttonbox.setStretchFactor(spacer,1)
1501
        buttonbox.setStretchFactor(spacer,1)
1499
1502
1500
        okbutton = QPushButton(i18n("OK"),buttonbox)
1503
        okbutton = TQPushButton(i18n("OK"),buttonbox)
1501
        buttonbox.setStretchFactor(okbutton,0)
1504
        buttonbox.setStretchFactor(okbutton,0)
1502
        self.connect(okbutton,SIGNAL("clicked()"),self.slotOkClicked)
1505
        self.connect(okbutton,SIGNAL("clicked()"),self.slotOkClicked)
1503
1506
1504
        cancelbutton = QPushButton(i18n("Cancel"),buttonbox)
1507
        cancelbutton = TQPushButton(i18n("Cancel"),buttonbox)
1505
        cancelbutton.setDefault(True)
1508
        cancelbutton.setDefault(True)
1506
        buttonbox.setStretchFactor(cancelbutton,0)
1509
        buttonbox.setStretchFactor(cancelbutton,0)
1507
        self.connect(cancelbutton,SIGNAL("clicked()"),self.slotCancelClicked)
1510
        self.connect(cancelbutton,SIGNAL("clicked()"),self.slotCancelClicked)
Lines 1512-1518 Link Here
1512
            .arg(userobj.getHomeDirectory()).arg(userobj.getUsername()) )
1515
            .arg(userobj.getHomeDirectory()).arg(userobj.getUsername()) )
1513
        self.radiogroup.setButton(0)
1516
        self.radiogroup.setButton(0)
1514
1517
1515
        if self.exec_loop()==QDialog.Accepted:
1518
        if self.exec_loop()==TQDialog.Accepted:
1516
            if self.radiogroup.selectedId()==0:
1519
            if self.radiogroup.selectedId()==0:
1517
                return OverwriteHomeDirectoryDialog.OK_KEEP
1520
                return OverwriteHomeDirectoryDialog.OK_KEEP
1518
            else:
1521
            else:
Lines 1534-1580 Link Here
1534
1537
1535
        self.admincontext = admincontext
1538
        self.admincontext = admincontext
1536
1539
1537
        topvbox = QVBox(self)
1540
        topvbox = TQVBox(self)
1538
        topvbox.setSpacing(self.spacingHint())
1541
        topvbox.setSpacing(self.spacingHint())
1539
        self.setMainWidget(topvbox)
1542
        self.setMainWidget(topvbox)
1540
1543
1541
        detailspace = QWidget(topvbox)
1544
        detailspace = TQWidget(topvbox)
1542
1545
1543
        # Info about the group.
1546
        # Info about the group.
1544
        editgrid = QGridLayout(detailspace,2,2)
1547
        editgrid = TQGridLayout(detailspace,2,2)
1545
        editgrid.setSpacing(self.spacingHint())
1548
        editgrid.setSpacing(self.spacingHint())
1546
1549
1547
        label = QLabel(i18n("Group Name:"),detailspace)
1550
        label = TQLabel(i18n("Group Name:"),detailspace)
1548
        editgrid.addWidget(label,0,0)
1551
        editgrid.addWidget(label,0,0)
1549
        self.groupnamelabel = KLineEdit("",detailspace)
1552
        self.groupnamelabel = KLineEdit("",detailspace)
1550
        self.groupnamelabel.setReadOnly(True)
1553
        self.groupnamelabel.setReadOnly(True)
1551
        editgrid.addWidget(self.groupnamelabel,0,1)
1554
        editgrid.addWidget(self.groupnamelabel,0,1)
1552
1555
1553
        label = QLabel(i18n("Group ID:"),detailspace)
1556
        label = TQLabel(i18n("Group ID:"),detailspace)
1554
        editgrid.addWidget(label,1,0)
1557
        editgrid.addWidget(label,1,0)
1555
        self.groupidlabel = KLineEdit("",detailspace)
1558
        self.groupidlabel = KLineEdit("",detailspace)
1556
        self.groupidlabel.setReadOnly(True)
1559
        self.groupidlabel.setReadOnly(True)
1557
        editgrid.addWidget(self.groupidlabel,1,1)
1560
        editgrid.addWidget(self.groupidlabel,1,1)
1558
1561
1559
        # Available Groups
1562
        # Available Groups
1560
        tophbox = QHBox(topvbox)
1563
        tophbox = TQHBox(topvbox)
1561
        tophbox.setSpacing(self.spacingHint())
1564
        tophbox.setSpacing(self.spacingHint())
1562
1565
1563
        hbox = tophbox
1566
        hbox = tophbox
1564
1567
1565
        vbox = QVBox(hbox)
1568
        vbox = TQVBox(hbox)
1566
        vbox.setSpacing(self.spacingHint())
1569
        vbox.setSpacing(self.spacingHint())
1567
        hbox.setStretchFactor(vbox,1)
1570
        hbox.setStretchFactor(vbox,1)
1568
        label = QLabel(i18n("Available Accounts"),vbox)
1571
        label = TQLabel(i18n("Available Accounts"),vbox)
1569
        vbox.setStretchFactor(label,0)
1572
        vbox.setStretchFactor(label,0)
1570
        self.availablelist = TDEListBox(vbox)
1573
        self.availablelist = TDEListBox(vbox)
1571
        vbox.setStretchFactor(self.availablelist,1)
1574
        vbox.setStretchFactor(self.availablelist,1)
1572
1575
1573
        # ->, <- Buttons
1576
        # ->, <- Buttons
1574
        vbox = QVBox(hbox)
1577
        vbox = TQVBox(hbox)
1575
        vbox.setSpacing(self.spacingHint())
1578
        vbox.setSpacing(self.spacingHint())
1576
        hbox.setStretchFactor(vbox,0)
1579
        hbox.setStretchFactor(vbox,0)
1577
        spacer = QWidget(vbox);
1580
        spacer = TQWidget(vbox);
1578
        vbox.setStretchFactor(spacer,1)
1581
        vbox.setStretchFactor(spacer,1)
1579
        self.addbutton = KPushButton(i18n("Add ->"),vbox)
1582
        self.addbutton = KPushButton(i18n("Add ->"),vbox)
1580
        self.connect(self.addbutton,SIGNAL("clicked()"),self.slotAddClicked)
1583
        self.connect(self.addbutton,SIGNAL("clicked()"),self.slotAddClicked)
Lines 1582-1595 Link Here
1582
        self.removebutton = KPushButton(i18n("<- Remove"),vbox)
1585
        self.removebutton = KPushButton(i18n("<- Remove"),vbox)
1583
        self.connect(self.removebutton,SIGNAL("clicked()"),self.slotRemoveClicked)
1586
        self.connect(self.removebutton,SIGNAL("clicked()"),self.slotRemoveClicked)
1584
        vbox.setStretchFactor(self.removebutton,0)
1587
        vbox.setStretchFactor(self.removebutton,0)
1585
        spacer = QWidget(vbox);
1588
        spacer = TQWidget(vbox);
1586
        vbox.setStretchFactor(spacer,1)
1589
        vbox.setStretchFactor(spacer,1)
1587
1590
1588
        # Selected Groups
1591
        # Selected Groups
1589
        vbox = QVBox(hbox)
1592
        vbox = TQVBox(hbox)
1590
        vbox.setSpacing(self.spacingHint())
1593
        vbox.setSpacing(self.spacingHint())
1591
        hbox.setStretchFactor(vbox,1)
1594
        hbox.setStretchFactor(vbox,1)
1592
        label = QLabel(i18n("Selected Accounts"),vbox)
1595
        label = TQLabel(i18n("Selected Accounts"),vbox)
1593
        vbox.setStretchFactor(label,0)
1596
        vbox.setStretchFactor(label,0)
1594
        self.selectedlist = TDEListBox(vbox)
1597
        self.selectedlist = TDEListBox(vbox)
1595
        vbox.setStretchFactor(self.selectedlist,1)
1598
        vbox.setStretchFactor(self.selectedlist,1)
Lines 1609-1615 Link Here
1609
1612
1610
        self.__updateLists(availablemembers,originalmembers)
1613
        self.__updateLists(availablemembers,originalmembers)
1611
1614
1612
        if self.exec_loop()==QDialog.Accepted:
1615
        if self.exec_loop()==TQDialog.Accepted:
1613
            newmembers = []
1616
            newmembers = []
1614
            for i in range(self.selectedlist.count()):
1617
            for i in range(self.selectedlist.count()):
1615
                newmembers.append(unicode(self.selectedlist.item(i).text()))
1618
                newmembers.append(unicode(self.selectedlist.item(i).text()))
Lines 1646-1652 Link Here
1646
1649
1647
        self.__updateLists(availablemembers,[])
1650
        self.__updateLists(availablemembers,[])
1648
1651
1649
        if self.exec_loop()==QDialog.Accepted:
1652
        if self.exec_loop()==TQDialog.Accepted:
1650
            self.groupobj.setGroupname(unicode(self.groupnamelabel.text()))
1653
            self.groupobj.setGroupname(unicode(self.groupnamelabel.text()))
1651
            newgroupid = int(unicode(self.groupidlabel.text()))
1654
            newgroupid = int(unicode(self.groupidlabel.text()))
1652
            self.groupobj.setGID(newgroupid)
1655
            self.groupobj.setGID(newgroupid)

Return to bug 1790