Thanks. Feel free to tell me I'm crazy - this is based on my limited understanding of CAS and I'm sure you're more knowledgable than I am.
On Apr 29, 11:36 pm, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > thanks. WIll process it asap. > > On Apr 29, 8:42 pm, Stodge <sto...@gmail.com> wrote: > > > > > > > > > created ticket 251 -http://code.google.com/p/web2py/issues/detail?id=251 > > > On Apr 29, 8:14 pm, Stodge <sto...@gmail.com> wrote: > > > > Im still stuck at this point; I don't see how maps can possibly be > > > setup properly if I use teh code from web2py.com/cas: > > > > from gluon.contrib.login_methods.cas_auth import > > > CasAuth > > > auth.define_tables(username=True) > > > auth.settings.login_form=CasAuth( > > > > globals(), > > > urlbase = "https://web2py.com/cas/ > > > cas", > > > actions=['login','check','logout']) > > > > Where does 'v' come from? > > > > On Apr 29, 3:20 pm, Stodge <sto...@gmail.com> wrote: > > > > > Now I'm stuck: > > > > > def __init__(self, g, > > > > urlbase = "https://web2py.com/cas/cas", > > > > actions=['login','check','logout'], > > > > maps=dict(username=lambda v:v[2], > > > > email=lambda v:v[1], > > > > user_id=lambda v:v[0]), > > > > casversion = 1, > > > > casusername = 'cas:user' > > > > ): > > > > > I know what a lambda function is, but how is this dictionary > > > > initialised? What executes the lambda function here? This python is > > > > above my head. Any suggestions? > > > > > Thanks > > > > > On Apr 29, 3:04 pm, Stodge <sto...@gmail.com> wrote: