Esempio n. 1
0
    def ver_mis_hijos (self, id_item):
        nom_proyecto=Variables.get_valor_by_nombre("nombre_proyecto_actual")
        nom_fase=Variables.get_valor_by_nombre("nombre_fase_actual")

        if id_item is not None:
            id_item=int(id_item)

        id_fase=int(Variables.get_valor_by_nombre("fase_actual"))
        hijos = Relaciones.get_mis_id_hijos(id_item)
        items=[]
        for hijo in hijos:
            h=Item.get_item_by_id(int(hijo))
            if (h.estado_oculto=="Activo"):
                items.append(h)
      
        return dict(pagina='ver_mis_hijos.html',items=items,nom_proyecto=nom_proyecto
                    ,nom_fase=nom_fase)