Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarClient/gui/ContenedorTareas.py
diff options
context:
space:
mode:
Diffstat (limited to 'EjercitarClient/gui/ContenedorTareas.py')
-rw-r--r--EjercitarClient/gui/ContenedorTareas.py23
1 files changed, 20 insertions, 3 deletions
diff --git a/EjercitarClient/gui/ContenedorTareas.py b/EjercitarClient/gui/ContenedorTareas.py
index 58414b0..4e8be99 100644
--- a/EjercitarClient/gui/ContenedorTareas.py
+++ b/EjercitarClient/gui/ContenedorTareas.py
@@ -5,14 +5,17 @@ Created on Feb 4, 2013
'''
import gtk
from gui.Ejercitario import Ejercitario
+from suds.client import Client
+
class ContenedorTareas(gtk.HBox):
# This is a callback function. The data arguments are ignored
# in this example. More on callbacks below.
+ WSDL_URL = 'http://localhost:8080/EjercitarServer/EjercitarWSBean?wsdl'
- def __init__(self, id_alumno, id_tarea, descripcion, ventana_padre, vista_temas, cliente_WS):
+ def __init__(self, id_alumno, id_tarea, descripcion, ventana_padre, vista_temas, cliente_WS,ayuda_padres, desde_hogar, estado_animo):
# create a new window
super(ContenedorTareas, self).__init__()
self.ventana_padre = ventana_padre
@@ -20,6 +23,9 @@ class ContenedorTareas(gtk.HBox):
self.cliente_WS = cliente_WS
self.id_alumno = id_alumno
self.id_tarea = id_tarea
+ self.ayuda_padres = ayuda_padres
+ self.desde_hogar = desde_hogar
+ self.estado_animo = estado_animo
label_descripcion = gtk.Label(descripcion)
separador = gtk.HSeparator()
@@ -43,6 +49,17 @@ class ContenedorTareas(gtk.HBox):
def __comenzar_cb(self, boton):
self.ventana_padre.remove(self.vista_temas)
- ejercitario = Ejercitario(self.cliente_WS, self.id_tarea, self.id_alumno)
+
+ cliente_WS = self.__sincronizar_WS()
+
+ cliente_WS.service.registrarSesion(1,self.id_tarea, self.ayuda_padres, self.desde_hogar, self.estado_animo)
+ ejercitario = Ejercitario(self.cliente_WS, self.id_tarea, self.id_alumno, self.estado_animo)
self.ventana_padre.add (ejercitario)
- \ No newline at end of file
+
+ def __sincronizar_WS(self):
+ try:
+ cliente_WS = Client(self.WSDL_URL)
+
+ except:
+ print "\n\nERROR al instanciar el SINCRONIZAR PROXY:"
+ return cliente_WS \ No newline at end of file