Changeset 4524


Ignore:
Timestamp:
May 3, 2017, 12:07:05 PM (2 years ago)
Author:
hectorgh
Message:

using radiobuttons to configure nfs

Location:
zero-server-wizard/trunk/fuentes/install-files/usr/share/zero-server-wizard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zero-server-wizard/trunk/fuentes/install-files/usr/share/zero-server-wizard/master.py

    r1039 r4524  
    7979                self.apply_button.set_sensitive(False)
    8080                self.apply_button.set_name("Button")
    81                 self.replication_cbutton=builder.get_object("data_cbutton")
    82                 self.replication_cbutton.connect("toggled",self.nfs_options_toggled)
     81                #self.replication_cbutton=builder.get_object("data_cbutton")
     82                #self.replication_cbutton.connect("toggled",self.nfs_options_toggled)
     83                self.replication_disabled_rbutton=builder.get_object("disabled_nfs_master_radiobutton")
    8384                self.nfs_frame=builder.get_object("nfs_frame")
    8485                self.mount_nfs_radiobutton=builder.get_object("mount_nfs_radiobutton")
     
    176177                        pass
    177178                       
    178                 self.nfs_frame.set_sensitive(False)
    179179                self.nfs_ip_entry.set_sensitive(False)
    180180               
     
    203203               
    204204                self.template["adminpassword"]=self.password_entry.get_text()
    205                 self.template["enable_data_replication"]=str(self.replication_cbutton.get_active()).lower()
     205                self.template["enable_data_replication"]=str(not self.replication_disabled_rbutton.get_active()).lower()
    206206                self.template["mount_nfs"]=str(self.mount_nfs_radiobutton.get_active()).lower()
    207207                self.template["export_nfs"]=str(self.export_nfs_radiobutton.get_active()).lower()
  • zero-server-wizard/trunk/fuentes/install-files/usr/share/zero-server-wizard/slave.py

    r1039 r4524  
    8282                #self.apply_button.set_sensitive(False)
    8383                self.apply_button.set_name("Button")
    84                 self.replication_cbutton=builder.get_object("data_cbutton1")
    85                 self.replication_cbutton.connect("toggled",self.nfs_options_toggled)
     84                self.replication_disabled_rbutton=builder.get_object("disabled_nfs_slave_radiobutton")
    8685               
    8786                self.croom_spinbutton=builder.get_object("croom_spinbutton")
     
    212211                        pass
    213212                       
    214                 self.nfs_frame.set_sensitive(False)
     213               
    215214                self.nfs_ip_entry.set_sensitive(False)
    216215               
     
    243242                self.template["remote_password2"]=self.password_entry2.get_text()
    244243                self.template["number_classroom"]=int(self.croom_spinbutton.get_value())
    245                 self.template["enable_data_replication"]=str(self.replication_cbutton.get_active()).lower()
     244                self.template["enable_data_replication"]=str(not self.replication_disabled_rbutton.get_active()).lower()
    246245                self.template["mount_nfs"]=str(self.mount_nfs_radiobutton.get_active()).lower()
    247246                self.template["mount_from_master"]=str(self.mount_from_master_radiobutton.get_active()).lower()
Note: See TracChangeset for help on using the changeset viewer.