Why not :

def your_master_controller_func()
    do your stuff

def your_second_controller/view_refering_to_the_output_of_the_preceding_func()
    return your_master_controller_func()

Didn't try... But I don't see why it couldn't works...

Richard

2011/9/13 António Ramos <[email protected]>:
> If i have 2 views with the same controller function i should not create the
> second function in the same controller.
> Also detecting for example ismobile in the view makes me mix diferent
> perspectives in the same view. This i find ugly coding. and ugly reading
> There should be some mecanism that could permit diferent views  to be
> attached to the same controller

Reply via email to