It might be a terrible idea (feel free to tell me if that is the case), but I am exploring the boundaries of Python and I could see how this can be useful (in fact, I am looking at the potential thing for him right now).
Here is the setup:
--- (API File) ---
class APINode(object):
def __init__(self, *args, **kwargs):
def render(self, arg1, arg2):
def api_function( arg1, arg2 ):
return APINode(args, kwargs)
---- (My file) ----
class MyNode(APINode):
def render(self, arg1, arg2):
def my_function( arg1, arg2 ):
api_parent_instance = api_function( arg1, arg2 )
api_function, . , : (1, yuck), api_function my_function, MyNode APINode (2, ?), api_function my_function, - APINode, - MyNode , .
: Python ?
( , ? Django.)