P
Pyenos
class modelass
class view:
model()
class controller:
model()
I can instantiate clsss model from inside class view but I can't
instantiate class model from inside controller, due to the nature of
python interpreter.
I wish to circumvent this restriction by:
class modelass
class view:
parent_class.model()
class controller:
parent_class.model()
but, I don't know the built-in variable that points to the parent
class. Could someone tell me how can I instantiate class model from
inside controller AND instantiate class model from inside view?
class view:
model()
class controller:
model()
I can instantiate clsss model from inside class view but I can't
instantiate class model from inside controller, due to the nature of
python interpreter.
I wish to circumvent this restriction by:
class modelass
class view:
parent_class.model()
class controller:
parent_class.model()
but, I don't know the built-in variable that points to the parent
class. Could someone tell me how can I instantiate class model from
inside controller AND instantiate class model from inside view?