def get(self): """MenuPrincipal Movil""" MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/mobile//m_menu.html') self.response.out.write(template.render(pathtemplate, None))
def get(self): MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate=None self.session=Sesion() self.session.logout() self.redirect("/")
def get(self): """ABC de altas de doctores""" error = "Usuario o password incorrectos" template_values = {"error": error} MyPath = AbsolutePath() path = MyPath.getAbsolutePath() pathtemplate = os.path.join(path, "templates/mobile/m_error.html") self.response.out.write(template.render(pathtemplate, template_values))
def get(self): MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/registrarEstudio.html') template_values ={ "upload_url": blobstore.create_upload_url('/upload'), } sess = Sesion() self.response.out.write(template.render(pathtemplate, template_values))
def get(self): MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/verEstudios.html') sess = Sesion() diagnostico=Diagnosticos() template_values ={ 'dr':diagnostico.EsDoctor(sess.getUser()) } self.response.out.write(template.render(pathtemplate, template_values))
def get(self): """ABC de altas de doctores""" MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate=None #self.session=Sesion() #self.session.logout() #self.session.store('Kristian') if mobileBrowser(self): pathtemplate = os.path.join(path, 'templates/mobile/m_login.html') else: pathtemplate = os.path.join(path, 'templates/login.html') self.response.out.write(template.render(pathtemplate, None))
def get(self): """ABC de Citas""" MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/citas.html') fecha=str(dt.date.today().day)+"/"+str(dt.date.today().month)+"/"+str(dt.date.today().year)[2:] fechaVer2=str(dt.date.today().day)+"-"+str(dt.date.today().month)+"-"+str(dt.date.today().year) sess = Sesion() doctores=self.ObtenerDoctores(sess.getUser()) template_values={ 'horarios':self.Agenda(doctores[0].usuario.usuario,fecha),#self.horario(), 'doctores':doctores, 'hoy':fechaVer2, #'citas':self.Citas(doctores[0].usuario.usuario,fecha), } self.response.out.write(template.render(pathtemplate, template_values))
def get(self): """ABC de altas de doctores""" MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/datosdr.html') template_values =None session=Sesion() dr=ValidoDoctor() if dr.ExisteDr(session.getUser()): template_values = { 'FormaDoctor' :FormaDoctor(instance=dr.instanciaDoctor(session.getUser())), } else: template_values = { 'FormaDoctor' :FormaDoctor(), } self.response.out.write(template.render(pathtemplate, template_values))
def get(self): """ABC de altas de doctores""" MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/datospaciente.html') session=Sesion() paciente=GraboPaciente() cita=Citas() #para obtener la lista de dr relacionados con el usuario doctores=cita.ObtenerDoctores(session.getUser()) if paciente.ExistePaciente(session.getUser()): template_values = { 'FormaPaciente' :FormaPaciente(instance=paciente.instanciaPaciente(session.getUser())), 'existe': False, 'doctores':doctores, } else: template_values = { 'FormaPaciente' :FormaPaciente(), 'existe': True, 'doctores':doctores, } self.response.out.write(template.render(pathtemplate, template_values))
def get(self,req): MyPath=AbsolutePath() ABSpath=MyPath.getAbsolutePath() ## try: paypal = PayPal() token=self.request.get('token') PayerID=self.request.get('PayerID') #obtengo la cantidad del cookie cookie=SesionPayment() cantidad=cookie.load() if int(cantidad)>0: respuesta=paypal.DoExpressCheckoutPayment(token,PayerID,cantidad) if self.find_key(respuesta,"ACK"): if respuesta["ACK"]=='Success': self.session=Sesion() self.session.store(token,3600,'armedPS')#la sesion dura una hora en la cookie armedPS path = os.path.join(ABSpath, 'templates/finalizarpago.html') self.response.out.write(template.render(path, None)) else: path = os.path.join(ABSpath, 'templates/cancelar.html') template_values={ 'mensaje': 'La operación fue cancelada por PayPal', } self.response.out.write(template.render(path, template_values)) else: path = os.path.join(ABSpath, 'templates/cancelar.html') template_values={ 'mensaje': 'La operación fue cancelada, Respuesta incorrecta por parte de PayPal', } self.response.out.write(template.render(path, template_values)) else: path = os.path.join(ABSpath, 'templates/cancelar.html') template_values={ 'mensaje': 'La operación fue cancelada, Error en los cookies', } self.response.out.write(template.render(path, template_values))
def get(self): """ABC de altas de doctores""" MyPath = AbsolutePath() path = MyPath.getAbsolutePath() pathtemplate = os.path.join(path, "templates/consulta.html") self.response.out.write(template.render(pathtemplate, None))
def get(self): MyPath=AbsolutePath() ABSpath=MyPath.getAbsolutePath() path = os.path.join(ABSpath, 'templates/cancelar.html') self.response.out.write(template.render(path, None))
def get(self): """Muestro la pantalla principal con solo las marcas de referencia""" MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/inicio.html') self.response.out.write(template.render(pathtemplate, None))
def get(self): MyPath=AbsolutePath() path=MyPath.getAbsolutePath() pathtemplate = os.path.join(path, 'templates/mobile/historial.html') self.response.out.write(template.render(pathtemplate, None))