Thanks for any assitance anyone can provide. Looking at the change log
It looks ilke the newest 1.0 version has the fix (i think) but I can't
figure out how to get easy_install to install a specific version only
the most recent a 2.X which breaks everything.
I tried the repoze website thinking the download section would have it
but again I can't find specific versions only docs for specific
versions.
TIA,
Paul Kraus
I also ran into the utter lack of a good implementation option for
this feature and have a bug opened here: http://trac.turbogears.org/ticket/2421
I'm assuming you're looking for some sort of "remember me" option on a
login form? As it stands now (even with the latest r.* updates), TG
doesn't appear to have an "easy way" to make this happen. I have been
able to monkey-patch repoze/who/plugins/auth_tkt.py to successfully
achieve this, but it is terribly ugly.
Seth
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
You can implement "remember me" functionality both unconditionally and
conditionally (e.g., when the user wants to). The unconditional way is
supported out-of-the-box in newer versions of repoze.what-quickstart.
The conditional one is a bit more complex. Here's my response to an
email I received requesting this:
====
repoze.who-friendlyform is not in charge of remembering the user. This
is why it uses a proper "rememberer" internally -- friendlyform
doesn't
read/set cookies.
The place where this should be implemented is in the rememberer used
by
friendlyform. So, you can either propose a patch for auth_tkt in
repoze.who or extend friendly form like this:
http://pastebin.com/f7a0abe24
But I'd recommend the first option (fixing it in auth_tkt).
====
HTH,
- Gustavo.
Whoops, that had a typo. Here's an amended version:
http://pastebin.com/jnAsaEt1
We have found a way to implement remember me in current version of Tg2.0 with
the version of repoze.what installed by Tg2.0 with a quick hack.
We set a cookie from the /login.html view to pass the remember_me option to
the controller and inside the /post_login we update the max_age.
You can find the code here: http://blog.axant.it/archives/231
It is not a complete solution, but it is a quick way to obtain the result.
Alessandro
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/N2Xf081Taf0J.