Changeset 8685


Ignore:
Timestamp:
May 9, 2019, 9:46:54 AM (3 weeks ago)
Author:
daduve
Message:

New colour in messages

Location:
first-aid-kit/trunk/fuentes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • first-aid-kit/trunk/fuentes/debian/changelog

    r8681 r8685  
     1first-aid-kit (0.0.20) xenial; urgency=high
     2
     3  * Pmb module bug solved
     4  * Add translations
     5  * Colour in text solved is blue
     6
     7 -- Daniel Duran Vecino <daduve@gmail.com>  Wed, 08 May 2019 12:20:41 +0200
     8
    19first-aid-kit (0.0.19) xenial; urgency=high
    210
  • first-aid-kit/trunk/fuentes/first-aid-kit.install/usr/share/first-aid-kit/AptBox.py

    r8676 r8685  
    130130
    131131                self.info_box_stack.set_visible_child_name("infobox")
     132                self.txt_check_apt.set_name("INFO_LABEL")
    132133                self.txt_check_apt.set_text(_("You are modifying the repositories, close the external app when you finished with it."))
    133134
     
    150151                        else:
    151152                                self.info_box_stack.set_visible_child_name("infobox")
     153                                self.txt_check_apt.set_name("INFO_LABEL_ERROR")
    152154                                self.txt_check_apt.set_text(_("Sorry but the app to modify the repositories can't be opened"))
    153155                                self.error=True
     
    156158                        self.core.dprint("(apt_execute_button_thread)Error: %s"%e,"[AptBox]")
    157159                        self.info_box_stack.set_visible_child_name("infobox")
     160                        self.txt_check_apt.set_name("INFO_LABEL_ERROR")
    158161                        self.txt_check_apt.set_text(_("Sorry but the app to modify the repositories can't be opened"))
    159162                        self.error=True
     
    176179                        self.info_box_stack.set_visible_child_name("empty_box")
    177180                        self.info_box_stack.set_visible_child_name("infobox")
     181                        self.txt_check_apt.set_name("INFO_LABEL")
    178182                        self.txt_check_apt.set_text(_("You have mofified the repositories."))
    179183                        self.core.dprint("You have mofified the repositories...FINISHED!!","[AptBox]")
  • first-aid-kit/trunk/fuentes/first-aid-kit.install/usr/share/first-aid-kit/KernelBox.py

    r8676 r8685  
    383383                        self.info_box_stack.set_visible_child_name("info_kernel")
    384384                        a=_("You have a new kernel boot by defect:")
     385                        self.txt_check_kernel.set_name("INFO_LABEL")
    385386                        self.txt_check_kernel.set_text("%s %s"%(a,self.kernel_selected))
    386387                        self.core.dprint("You have a new kernel boot by defect: %s"%self.kernel_selected,"[KernelBox]")
     
    423424
    424425                        self.info_box_stack.set_visible_child_name("info_kernel")
     426                        self.txt_check_kernel.set_name("INFO_LABEL")
    425427                        self.txt_check_kernel.set_text(_("Applying filter to show only installed kernels...please wait"))
    426428                        self.core.dprint("Applying filter to show only installed kernels...please wait","[KernelBox]")
     
    452454
    453455                        self.info_box_stack.set_visible_child_name("info_kernel")
     456                        self.txt_check_kernel.set_name("INFO_LABEL")
    454457                        self.txt_check_kernel.set_text(_("Applying filter to kernels...please wait"))
    455458                        self.core.dprint("Applying filter to kernels...","[KernelBox]")
     
    495498
    496499                        self.info_box_stack.set_visible_child_name("info_kernel")
     500                        self.txt_check_kernel.set_name("INFO_LABEL")
    497501                        self.txt_check_kernel.set_text(_("Updating Kernel Cache...please wait"))
    498502                        self.core.dprint("Updating Kernel Cache...","[KernelBox]")
     
    747751                                self.info_box_stack.set_visible_child_name("info_kernel")
    748752                                a=_("Your new kernel list:")
     753                                self.txt_check_kernel.set_name("INFO_LABEL")
    749754                                self.txt_check_kernel.set_text("%s\n%s"%(a,self.installed))
    750755                                self.flag_installed=False
     
    885890                                self.info_box_stack.set_visible_child_name("info_kernel")
    886891                                a = _("You cancel to uninstall kernel:")
     892                                self.txt_check_kernel.set_name("INFO_LABEL")
    887893                                self.txt_check_kernel.set_text(_("%s %s")%(a,widget.label))
    888894                                self.core.dprint("You cancel to uninstall kernel: %s"%(widget.label),"[KernelBox]")
     
    897903                        self.info_box_stack.set_visible_child_name("info_kernel")
    898904                        a=_("(uninstall_clicked) Error:")
     905                        self.txt_check_kernel.set_name("INFO_LABEL_ERROR")
    899906                        self.txt_check_kernel.set_text("%s %s"%(a,e))
    900907
     
    919926                                self.info_box_stack.set_visible_child_name("info_kernel")
    920927                                a=_("You cancel to install kernel:")
     928                                self.txt_check_kernel.set_name("INFO_LABEL")
    921929                                self.txt_check_kernel.set_text(_("%s %s")%(a,widget.label))
    922930                                self.core.dprint("%s %s"%(a,widget.label),"[KernelBox]")
     
    930938                        self.core.dprint("(install_clicked) Error: %s"%e,"[KernelBox]")
    931939                        self.info_box_stack.set_visible_child_name("info_kernel")
     940                        self.txt_check_kernel.set_name("INFO_LABEL_ERROR")
    932941                        self.txt_check_kernel.set_text(_("(install_clicked) Error: %s"%e))
    933942
     
    978987                        self.info_box_stack.set_visible_child_name("info_kernel")
    979988                        a=_("Please wait.....")
     989                        self.txt_check_kernel.set_name("INFO_LABEL")
    980990                        self.txt_check_kernel.set_text(_("%s: %s  %s"%(label_action,kernel_label,a)))
    981991                        #self.core.dprint("%s: %s  %s"%(label_action,kernel_label,a),"KernelBox")
  • first-aid-kit/trunk/fuentes/first-aid-kit.install/usr/share/first-aid-kit/NetBox.py

    r8676 r8685  
    236236                                self.core.dprint("Server connection is UNAVAIABLE....","[NetBox]")
    237237                                self.check1_image.set_from_stock("gtk-no",Gtk.IconSize.BUTTON)
    238                                 self.server_connection=Falsee
     238                                self.server_connection=False
    239239
    240240                        self.core.dprint("Test Network....","[NetBox]")
     
    441441                self.test_combobox.set_sensitive(True)
    442442                self.info_box_stack.set_visible_child_name("infobox")
     443                self.txt_check_nettest.set_name("INFO_LABEL")
    443444                self.txt_check_nettest.set_text(_("The network card has been reset"))
    444445                #self.info_box_network_stack.set_visible_child_name("infobox")
     
    508509
    509510                                self.info_box_stack.set_visible_child_name("infobox")
     511                                self.txt_check_nettest.set_name("INFO_LABEL_ERROR")
    510512                                self.txt_check_nettest.set_text(_("You have hardware problems, please review your data\n cable and your connections, because your netcard doesn't have link."))
    511513
     
    515517
    516518                                        self.info_box_stack.set_visible_child_name("infobox")
     519                                        self.txt_check_nettest.set_name("INFO_LABEL_ERROR")
    517520                                        self.txt_check_nettest.set_text(_("You can't connect with server, are you sure that\n the server is started? Please review it and reboot your sistem."))
    518521
     
    522525
    523526                                                self.info_box_stack.set_visible_child_name("infobox")
     527                                                self.txt_check_nettest.set_name("INFO_LABEL_ERROR")
    524528                                                self.txt_check_nettest.set_text(_("Your internet server is down,\n please review the internet server connection, the proxy or the router."))
    525529
  • first-aid-kit/trunk/fuentes/first-aid-kit.install/usr/share/first-aid-kit/NetfilesBox.py

    r8676 r8685  
    124124                                self.acl_elapsed=datetime.datetime.now() - self.acl_time_start
    125125                                self.acl_elapsed=self.time_formated(self.acl_elapsed)
     126                                self.info_netfiles_txt.set_name("INFO_LABEL")
    126127                                self.info_netfiles_txt.set_text(_("ACLs are still regenerating, time elapsed: %s "%self.acl_elapsed))
    127128                                self.core.dprint("ACLs are still regenerating, time elapsed: %s "%self.acl_elapsed)
     
    195196                f.write(self.acl_time_start.ctime())
    196197                f.close()
    197 
     198                self.info_netfiles_txt.set_name("INFO_LABEL")
    198199                self.info_netfiles_txt.set_text(_("ACLs are still regenerating...... please, wait."))
    199200
     
    235236                                self.acl_elapsed=datetime.datetime.now() - self.acl_time_start
    236237                                self.acl_elapsed=self.time_formated(self.acl_elapsed)
     238                                self.info_netfiles_txt.set_name("INFO_LABEL")
    237239                                self.info_netfiles_txt.set_text(_("ACLs are still regenerating, time elapsed: %s "%self.acl_elapsed))
    238240                                self.core.dprint("ACLs are still regenerating, time elapsed %s "%self.acl_elapsed,"[NetfilesBox]")
     
    290292                self.info_netfiles_stack.set_visible_child_name("info_netfiles")
    291293                self.regenerate_time_start=datetime.datetime.now()
     294                self.info_netfiles_txt.set_name("INFO_LABEL")
    292295                self.info_netfiles_txt.set_text(_("User folders are still regenerating...... please, wait."))
    293296
     
    342345                                self.regenerate_elapsed=datetime.datetime.now() - self.regenerate_time_start
    343346                                self.regenerate_elapsed=self.time_formated(self.regenerate_elapsed)
     347                                self.info_netfiles_txt.set_name("INFO_LABEL")
    344348                                self.info_netfiles_txt.set_text(_("User folders are still regenerating, time elapsed: %s "%self.regenerate_elapsed))
    345349                                self.core.dprint("User folders are still regenerating, time elapsed: %s "%self.regenerate_elapsed,"[NetfilesBox]")
     
    379383                if self.acl_error[0]== True:
    380384                        self.info_netfiles_stack.set_visible_child_name("info_netfiles")
     385                        self.info_netfiles_txt.set_name("INFO_LABEL_ERROR")
    381386                        self.info_netfiles_txt.set_text(_("ACLs error: %s")%self.acl_error[1])
    382387                        if self.regenerate_error[0]==True:
    383388                                self.info_netfiles_stack.set_visible_child_name("info_netfiles")
     389                                self.info_netfiles_txt.set_name("INFO_LABEL_ERROR")
    384390                                self.info_netfiles_txt.set_text(_("ACLs error: %s\nRegenerate error:%s")%(self.acl_error[1],self.regenerate_error[1]))
    385391                        return True
    386392                if self.regenerate_error[0]==True:
    387393                        self.info_netfiles_stack.set_visible_child_name("info_netfiles")
     394                        self.info_netfiles_txt.set_name("INFO_LABEL_ERROR")
    388395                        self.info_netfiles_txt.set_text(_("Regenerate error:%s")%self.regenerate_error[1])
    389396                        return True
     
    392399                        if self.regenerate_executed == False:
    393400                                self.info_netfiles_stack.set_visible_child_name("info_netfiles")
     401                                self.info_netfiles_txt.set_name("INFO_LABEL")
    394402                                self.info_netfiles_txt.set_text(_("Finished!!!\nACLs of the files have been reviewed. Time elapsed to do %s"%self.acl_elapsed))
    395403                        else:
    396404                                self.info_netfiles_stack.set_visible_child_name("info_netfiles")
     405                                self.info_netfiles_txt.set_name("INFO_LABEL")
    397406                                self.info_netfiles_txt.set_text(_("Finished!!!\nACLs of the files have been reviewed, in %s.\nAll user folders have been regenerated if it's necessary in %s"%(self.acl_elapsed,self.regenerate_elapsed)))
    398407                else:
    399408                        if self.regenerate_executed == True:
    400409                                self.info_netfiles_stack.set_visible_child_name("info_netfiles")
     410                                self.info_netfiles_txt.set_name("INFO_LABEL")
    401411                                self.info_netfiles_txt.set_text(_("Finished!!!\nAll user folders have been regenerated if it's necessary. Time elapsed to do %s")%self.regenerate_elapsed)
    402412
  • first-aid-kit/trunk/fuentes/first-aid-kit.install/usr/share/first-aid-kit/PmbBox.py

    r8676 r8685  
    170170                        self.core.working=True
    171171                        self.core.dprint("Reseting your PMB passwd.........","[PmbBox]")
    172                         os.system('Update users set pwd=password("admin") where username like "admin"')
     172                        os.system('mysql -s -N -e "update pmb.users set pwd=password(\'admin\') where username like \'admin\';"')
    173173                        time.sleep(1)
    174174                        self.thread_ret={"status":True,"msg":"BROKEN"}
     
    194194                        self.info_box_stack.set_visible_child_name("empty_box")
    195195                        self.info_box_stack.set_visible_child_name("infobox")
    196                         self.txt_check_pmb.set_text(_("New PMB admin passwd is admin."))
    197                         self.core.dprint("You have modified PMB admin passwd...FINISHED!!","[PmbBox]")
     196                        self.txt_check_pmb.set_text(_("Your new passwd to admin user is admin\nPlease logged in your application and change it."))
     197                        self.core.dprint("Your new passwd to admin user is admin. Please logged in your application and change it.","[PmbBox]")
    198198
    199199                except Exception as e:
  • first-aid-kit/trunk/fuentes/first-aid-kit.install/usr/share/first-aid-kit/first-aid-kit.css

    r8633 r8685  
    2828        #INFO_LABEL {
    2929                font: Roboto Light;
     30                color: #00008B;
     31
     32        }
     33
     34        #INFO_LABEL_ERROR {
     35                font: Roboto Light;
    3036                color: #ff0000;
    3137
Note: See TracChangeset for help on using the changeset viewer.