for one multiple login types, without using RXP
2010/11/24 mdipierro <[email protected]>: > what is the problem you are trying to solve? > > On Nov 23, 4:41 pm, Michele Comitini <[email protected]> > wrote: >> 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

