Changeset 6387


Ignore:
Timestamp:
Nov 27, 2017, 5:39:28 PM (23 months ago)
Author:
Juanma
Message:

Changes due to n4dgtklogin new api

Location:
taskscheduler/trunk/fuentes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • taskscheduler/trunk/fuentes/debian/changelog

    r6384 r6387  
     1taskscheduler (0.3.3) xenial; urgency=medium
     2
     3  * Changes due to n4dgtklogin new api
     4
     5 -- Juanma Navarro Mañez <juanma1980@gmail.com>  Mon, 27 Nov 2017 17:38:18 +0100
     6
    17taskscheduler (0.3.2.3) xenial; urgency=medium
    28
  • taskscheduler/trunk/fuentes/debian/control

    r6379 r6387  
    1414Package: taskscheduler
    1515Architecture: all
    16 Depends: ${misc:Depends}, ${python3:Depends}, python3-taskscheduler (= ${binary:Version}),python3-n4dgtklogin (>=0.3.3),n4d-taskscheduler-client (= ${binary:Version}), taskscheduler-data (= ${binary:Version})
     16Depends: ${misc:Depends}, ${python3:Depends}, python3-taskscheduler (= ${binary:Version}),python3-n4dgtklogin (>=0.4),n4d-taskscheduler-client (= ${binary:Version}), taskscheduler-data (= ${binary:Version})
    1717Description: Main taskschedular program
    1818
  • taskscheduler/trunk/fuentes/lliurex-po/taskscheduler/ca_ES@valencia.po

    r6379 r6387  
    77"Project-Id-Version: \n"
    88"Report-Msgid-Bugs-To: \n"
    9 "POT-Creation-Date: 2017-11-23 13:12+0100\n"
    10 "PO-Revision-Date: 2017-11-23 13:14+0100\n"
     9"POT-Creation-Date: 2017-11-27 17:36+0100\n"
     10"PO-Revision-Date: 2017-11-27 17:37+0100\n"
    1111"Last-Translator: Pilar Embid Giner <embid_mar@gva.es>\n"
    1212"Language-Team: LliureX\n"
     
    3131
    3232#: ../scheduler-gui.install/usr/share/taskscheduler/rsrc/taskScheduler.ui:58
    33 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:680
    34 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:721
     33#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:686
     34#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:729
    3535msgid "Command"
    3636msgstr "Ordre"
     
    251251msgstr "Cada"
    252252
    253 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:542
     253#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:544
    254254msgid "There's another instance of Task Scheduler running."
    255255msgstr "Hi ha una altra instància del Programador de tasques en execució."
    256256
    257 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:562
     257#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:565
    258258msgid ""
    259259"Welcome to the Task Scheduler for Lliurex.\n"
     
    269269"*Consultar les tasques programades</sub>"
    270270
    271 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:563
     271#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:566
    272272msgid "Task Scheduler"
    273273msgstr "Programador de tasques"
    274274
    275 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:649
     275#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:655
    276276msgid "Task"
    277277msgstr "Tasca"
    278278
    279 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:656
     279#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:662
    280280msgid "Serial"
    281281msgstr "Serial"
    282282
    283 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:664
     283#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:670
    284284msgid "When"
    285285msgstr "Quan"
    286286
    287 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:672
     287#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:678
    288288msgid "Remove"
    289289msgstr "Elimina"
    290290
    291 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:710
     291#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:716
    292292msgid "A descriptive name for the command"
    293293msgstr "Un nom descriptiu per a l'ordre"
    294294
    295 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:711
    296 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:712
     295#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:717
     296#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:718
    297297msgid "Task name"
    298298msgstr "Nom de la tasca"
    299299
    300 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:725
     300#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:733
    301301msgid "Needs a file"
    302302msgstr "Cal un fitxer"
    303303
    304 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:726
     304#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:734
    305305msgid "Mark if the command will launch a file"
    306306msgstr "Marqueu-la si l'ordre executa un fitxer"
    307307
    308 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:728
     308#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:736
    309309msgid "Select the file that will be launched"
    310310msgstr "Seleccioneu el fitxer que s'ha d'executar"
    311311
    312 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:731
     312#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:739
    313313msgid "Needed arguments"
    314314msgstr "Arguments requerits"
    315315
    316 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:732
     316#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:740
    317317msgid "Put here the arguments for the command (if any)"
    318318msgstr "Escriviu ací els arguments per a l'ordre (si cal)"
    319319
    320 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:733
     320#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:741
    321321msgid "Arguments"
    322322msgstr "Arguments"
    323323
    324 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:763
    325 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:877
     324#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:772
     325#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:903
    326326msgid "Task saved"
    327327msgstr "Tasca guardada"
    328328
    329 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:852
     329#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:774
     330#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:905
     331#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:988
     332#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:1042
     333msgid "Permission denied"
     334msgstr "Permís denegat"
     335
     336#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:876
    330337msgid "Are you sure to delete this task?"
    331338msgstr "Esteu segur que voleu eliminar aquesta tasca?"
    332339
    333 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:951
     340#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:985
    334341msgid "Task updated"
    335342msgstr "Tasca actualitzada"
  • taskscheduler/trunk/fuentes/lliurex-po/taskscheduler/es.po

    r6375 r6387  
    88"Project-Id-Version: \n"
    99"Report-Msgid-Bugs-To: \n"
    10 "POT-Creation-Date: 2017-11-22 10:37+0100\n"
    11 "PO-Revision-Date: 2017-11-22 10:38+0100\n"
     10"POT-Creation-Date: 2017-11-27 17:36+0100\n"
     11"PO-Revision-Date: 2017-11-27 17:36+0100\n"
    1212"Last-Translator: \n"
    1313"Language-Team: \n"
     
    3232
    3333#: ../scheduler-gui.install/usr/share/taskscheduler/rsrc/taskScheduler.ui:58
    34 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:680
    35 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:721
     34#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:686
     35#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:729
    3636msgid "Command"
    3737msgstr "Acción"
     
    252252msgstr "Cada"
    253253
    254 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:542
     254#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:544
    255255msgid "There's another instance of Task Scheduler running."
    256256msgstr "Hay otra instancia del programador de tareas en ejecución"
    257257
    258 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:562
     258#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:565
    259259msgid ""
    260260"Welcome to the Task Scheduler for Lliurex.\n"
     
    270270"*Consultar las tareas programadas</sub>"
    271271
    272 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:563
     272#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:566
    273273msgid "Task Scheduler"
    274274msgstr "Programador de Tareas"
    275275
    276 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:649
     276#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:655
    277277msgid "Task"
    278278msgstr "Tarea"
    279279
    280 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:656
     280#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:662
    281281msgid "Serial"
    282282msgstr "Serial"
    283283
    284 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:664
     284#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:670
    285285msgid "When"
    286286msgstr "Cuando"
    287287
    288 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:672
     288#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:678
    289289msgid "Remove"
    290290msgstr "Eliminar"
    291291
    292 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:710
     292#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:716
    293293msgid "A descriptive name for the command"
    294294msgstr "Un nombre descriptivo para el comando"
    295295
    296 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:711
    297 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:712
     296#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:717
     297#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:718
    298298msgid "Task name"
    299299msgstr "Nombre de la tarea"
    300300
    301 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:725
     301#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:733
    302302msgid "Needs a file"
    303303msgstr "Necesita fichero"
    304304
    305 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:726
     305#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:734
    306306msgid "Mark if the command will launch a file"
    307307msgstr "Selecciona si el comando lanza un fichero"
    308308
    309 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:728
     309#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:736
    310310msgid "Select the file that will be launched"
    311311msgstr "Selecciona el fichero a lanzar"
    312312
    313 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:731
     313#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:739
    314314msgid "Needed arguments"
    315315msgstr "Argumentos requeridos"
    316316
    317 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:732
     317#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:740
    318318msgid "Put here the arguments for the command (if any)"
    319319msgstr "Escribe aquí los argumentos para el comando (si los hay)"
    320320
    321 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:733
     321#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:741
    322322msgid "Arguments"
    323323msgstr "Argumentos"
    324324
    325 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:763
    326 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:877
     325#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:772
     326#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:903
    327327msgid "Task saved"
    328328msgstr "Tarea guardada"
    329329
    330 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:852
     330#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:774
     331#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:905
     332#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:988
     333#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:1042
     334msgid "Permission denied"
     335msgstr "Permiso denegado"
     336
     337#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:876
    331338msgid "Are you sure to delete this task?"
    332339msgstr "¿Desea borrar esta tarea?"
    333340
    334 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:951
     341#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:985
    335342msgid "Task updated"
    336343msgstr "Tarea actualizada"
  • taskscheduler/trunk/fuentes/lliurex-po/taskscheduler/taskscheduler.pot

    r6375 r6387  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-11-22 10:22+0100\n"
     11"POT-Creation-Date: 2017-11-27 17:35+0100\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    3131
    3232#: ../scheduler-gui.install/usr/share/taskscheduler/rsrc/taskScheduler.ui:58
    33 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:680
    34 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:721
     33#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:686
     34#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:729
    3535msgid "Command"
    3636msgstr ""
     
    247247msgstr ""
    248248
    249 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:542
     249#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:544
    250250msgid "There's another instance of Task Scheduler running."
    251251msgstr ""
    252252
    253 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:562
     253#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:565
    254254msgid ""
    255255"Welcome to the Task Scheduler for Lliurex.\n"
     
    260260msgstr ""
    261261
    262 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:563
     262#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:566
    263263msgid "Task Scheduler"
    264264msgstr ""
    265265
    266 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:649
     266#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:655
    267267msgid "Task"
    268268msgstr ""
    269269
    270 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:656
     270#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:662
    271271msgid "Serial"
    272272msgstr ""
    273273
    274 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:664
     274#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:670
    275275msgid "When"
    276276msgstr ""
    277277
    278 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:672
     278#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:678
    279279msgid "Remove"
    280280msgstr ""
    281281
    282 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:710
     282#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:716
    283283msgid "A descriptive name for the command"
    284284msgstr ""
    285285
    286 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:711
    287 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:712
     286#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:717
     287#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:718
    288288msgid "Task name"
    289289msgstr ""
    290290
    291 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:725
     291#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:733
    292292msgid "Needs a file"
    293293msgstr ""
    294294
    295 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:726
     295#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:734
    296296msgid "Mark if the command will launch a file"
    297297msgstr ""
    298298
    299 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:728
     299#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:736
    300300msgid "Select the file that will be launched"
    301301msgstr ""
    302302
    303 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:731
     303#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:739
    304304msgid "Needed arguments"
    305305msgstr ""
    306306
    307 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:732
     307#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:740
    308308msgid "Put here the arguments for the command (if any)"
    309309msgstr ""
    310310
    311 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:733
     311#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:741
    312312msgid "Arguments"
    313313msgstr ""
    314314
    315 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:763
    316 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:877
     315#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:772
     316#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:903
    317317msgid "Task saved"
    318318msgstr ""
    319319
    320 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:852
     320#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:774
     321#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:905
     322#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:988
     323#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:1042
     324msgid "Permission denied"
     325msgstr ""
     326
     327#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:876
    321328msgid "Are you sure to delete this task?"
    322329msgstr ""
    323330
    324 #: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:951
     331#: ../scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py:985
    325332msgid "Task updated"
    326333msgstr ""
  • taskscheduler/trunk/fuentes/scheduler-gui.install/usr/share/taskscheduler/bin/taskScheduler.py

    r6383 r6387  
    498498                if self.task_name and self.task_serial:
    499499                        task_data=self.get_task_details()
    500                         self.scheduler_client.write_tasks(task_data,self.task_type)
     500                        return self.scheduler_client.write_tasks(task_data,self.task_type)
    501501        #def update_task_details
    502502
     
    562562                self.main_box=builder.get_object("main_box")
    563563                self.login=N4dGtkLogin()
     564                self.login.set_allowed_groups(['adm'])
    564565                desc=_("Welcome to the Task Scheduler for Lliurex.\nFrom here you can:\n<sub>* Schedule tasks in the local pc\n* Distribute tasks among all the pcs in the network\n*Show scheduled tasks</sub>")
    565                 self.login.set_info_text("<span foreground='black'>Task Scheduler</span>",_("Task Scheduler"),"<span foreground='black'>"+desc+"</span>")
    566 #               self.login.set_info_background(image='/usr/share/backgrounds/lliurex/lliurex-blueprint.png',cover=True)
     566                self.login.set_info_text("<span foreground='black'>Task Scheduler</span>",_("Task Scheduler"),"<span foreground='black'>"+desc+"</span>\n")
    567567                self.login.set_info_background(image='taskscheduler',cover=True)
    568568                self.login.after_validation_goto(self._signin)
    569                 self.loginBox=self.login.render_form()
     569                self.login.hide_server_entry()
    570570                self.inf_message=Gtk.InfoBar()
    571571                self.inf_message.set_show_close_button(True)
     
    619619                self.stack.add_titled(self.manage_box, "manage", "Manage")
    620620                self.stack.add_titled(self.add_task_box, "add", "Add Task")
    621                 self.stack.add_titled(self.loginBox, "login", "Login")
     621#               self.stack.add_titled(self.loginBox, "login", "Login")
     622                self.stack.add_titled(self.login, "login", "Login")
    622623                #Packing
    623624                self.main_box.pack_start(self.stack,True,False,5)
     
    767768                cmd=self.scheduler_client.get_command_cmd(cmd_desc)
    768769                if w_chk.get_active():
    769                                 parms=parms+' '+w_file.get_uri().replace('file://','')
    770                 self.scheduler_client.write_custom_task(name,cmd,parms)
    771                 self._show_info(_("Task saved"))
     770                        parms=parms+' '+w_file.get_uri().replace('file://','')
     771                if self.scheduler_client.write_custom_task(name,cmd,parms):
     772                        self._show_info(_("Task saved"))
     773                else:
     774                        self._show_info(_("Permission denied"))
    772775        #def _add_custom_task
    773776
     
    894897                self._debug("Writing task info...")
    895898                if self.chk_remote.get_active():
    896                         self.scheduler_client.write_tasks(task,'remote')
     899                        status=self.scheduler_client.write_tasks(task,'remote')
    897900                if self.chk_local.get_active():
    898                         self.scheduler_client.write_tasks(task,'local')
    899                 self._show_info(_("Task saved"))
     901                        status=self.scheduler_client.write_tasks(task,'local')
     902                if status:
     903                        self._show_info(_("Task saved"))
     904                else:
     905                        self._show_info(_("Permission denied"))
    900906                return()
    901907        #def save_task_details
     
    976982        def update_task(self,widget,data=None):
    977983                self._debug("Updating task")
    978                 self.task_details_grid.update_task_details()
    979                 self._show_info(_('Task updated'))
    980                 self._reload_grid()
     984                if self.task_details_grid.update_task_details():
     985                        self._show_info(_('Task updated'))
     986                        self._reload_grid()
     987                else:
     988                        self._show_info(_('Permission denied'))
     989               
    981990        #def update_task
    982991
     
    10181027        def manage_remove_responses(self,widget,response,model,task_name,task_serial,task_cmd,task_type,data):
    10191028                if response==Gtk.ResponseType.OK:
     1029                        self.inf_question.hide()
    10201030                        if task_name in self.orig_tasks.keys():
    10211031                                name=self.orig_tasks[task_name]
     
    10261036                        else:
    10271037                                cmd=task_cmd
    1028                         self.scheduler_client.remove_task(name,task_serial,cmd,task_type)
    1029                         self.populate_tasks_tv(task_type)
    1030                         self.tasks_tv.set_cursor(0)
    1031                 self.inf_question.hide()
     1038                        if self.scheduler_client.remove_task(name,task_serial,cmd,task_type):
     1039                                self.populate_tasks_tv(task_type)
     1040                                self.tasks_tv.set_cursor(0)
     1041                        else:
     1042                                self._show_info(_("Permission denied"))
    10321043                for widget in self.main_box.get_children():
    10331044                        widget.set_sensitive(True)
Note: See TracChangeset for help on using the changeset viewer.