EDIT:
I will add the whole code, the names of clases and stuff are in spanish but i hope you understand:
class Rubro():
'''
Representa un rubro de venta. Por ejemplo: pastas y quesos son dos
rubros diferentes.
'''
def __init__(self, id, nombre, descripcion, icono=None):
self.id = id
self.nombre = nombre
self.descripcion = descripcion
self.icono = icono
self.col_variedades = {}
self.objBroker = persistencia.obtener_broker(self, None)
def obtener_todos(self):
self.objBroker.cargar_todo()
class Broker():
def cargar_todo(self):
pass
class sqliteBrokerArticulos(Broker):
def __init__(self):
self.obj_db = sqliteDB()
def cargar_todo(self):
return self.ejecutar("SELECT * FROM articulos")
def ejecutar(self, sentenciaSQL):
conn = self.obj_db.abrir_conexion()
try:
conn.execute(sentenciaSQL)
conn.commit()
except:
return False
self.obj_db.cerrar_conexion()
I dont know how to explain it really, this is the code:
class A():
def a(self):
return self.objC.b()
class B():
def b(self):
#do something
class C(B):
def b(self):
#do something else
The problem is that it does not get into b(), It just skip it, and goes out of a() when it reachs that line
I dont know what could it be.