Commits

m0e_lnx  committed 39e511b

minor fixes

  • Participants
  • Parent commits baf3d01

Comments (0)

Files changed (3)

File user_add/__init__.py

 #!/usr/bin/env python
 
+#    This file is part of controlcenter.
+#
+#    controlcenter is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License v2 as published by
+#    the Free Software Foundation.
+#
+#    controlcenter is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with controlcenter.  If not, see <http://www.gnu.org/licenses/>.
+
 '''User modidification module.
 Contains classes and methods for the user account manager module'''

File user_add/user_mod.py

 import os
 
 __tabs__ = []
+__unchanged_account_data = None
 
 def _(str): return str
 
         Arguments:
             account:    An Account object representing the account to be edited'''
     def __init__(self, account = None):
-        #gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
         gtk.Window.__init__(self)
         self.set_position(gtk.WIN_POS_CENTER)
         self.set_default_size(400, 350)
         self.account = account
+        if not account.is_new:
+            ## Keep a copy of the existing information for comparison purposes
+            __unchanged_account_data = account
+        
         if not self.account: self.account = Account()
         body = gtk.VBox()   
         
-        #if not __tabs__:
-
         self.add(body)
         self.notebook = gtk.Notebook()
         body.pack_start(self.notebook, True, True, 2)
 
     
     def _do_exit(self, widget=None):
-        #print self.notebook.get_n_pages()
         self.hide()
         
-            
+
 
 class AdvancedInfo(Tab):
     def __init__(self, account = None):

File user_add/users_manage.py

 import gtk
 import user_mod
 
+
 def _(str): return str
 
 class Win(gtk.Window):
         self.statusbar.push(0, _('Welcome to controlcenter'))
         
         self.__modwin = None
+    def delete_user(self, widget):
+        ''' Displays the delte user dialog '''
+        
         
     def edit_user(self, widget):
         ''' Show properties for selected user from the treeview'''