Massimo,
to make  the auth.settings.login_next more dynamic could be this a solution?


in the model:

class FunctorFactory(object):
    def __init__(self, f=lambda:None):
        self.function = f
    def __call__(self):
        return self.function()
    def __str__(self):
        return str(self.function())

def login_next_function():
   blah
   blah
   ....
   return URL( <whatever> )

auth.settings.login_next = FunctorFactory(login_next_function)

tnx
mic

Reply via email to