def server_inicializar_base_html (): salida = ("") try: idMetamodelo = int(request.forms.get("idMetamodelo")) if idMetamodelo is None: raise Exception ("Ingreso no autorizado") if not ModeladorDao.inicializarBase(): raise Exception ("Error en Inicializacion") salida = str("Inicializacion Exitosa") except (Exception) as ex: salida = ( repr(ex) ) return salida
def testInicializarBase(self): #os.remove(config.XPDBASEPATH) if not (ModeladorDao.inicializarBase()): self.fail("Error en proceso inicializacion")