tg 2.2 converting from tg 2.1 ( using who.ini v2 and removing repoze.what)

55 views
Skip to first unread message

kgk

unread,
Oct 9, 2012, 5:36:11 PM10/9/12
to turbo...@googlegroups.com

I have an application (on tg 2.1.5) that I am trying to base on tg 2.2
which uses repoze.who v2 (repoze.who v1 has some issues for us)


I think the docs (
)  are out of date as they seem to require repoze.what specifically the lines
 ---------------------
from repoze.what.plugins.sql import configure_sql_adapters
from repoze.what.middleware import AuthorizationMetadata

from customwho import model
auth_plugin = SQLAlchemyAuthenticatorPlugin(model.User, model.DBSession)
md_plugin = SQLAlchemyUserMDPlugin(model.User, model.DBSession )
_source_adapters = configure_sql_adapters(
-------------------

I notice that repoze.what has a dependency on repoze.who v1 so I am back where
I started

Given the new auth code for tg 2.2 does someone have an updated recipe for
using with who.ini?



Michael Pedersen

unread,
Oct 15, 2012, 10:52:04 PM10/15/12
to turbo...@googlegroups.com
I don't have the recipe yet. Could you open a ticket at
https://github.com/TurboGears/tg2docs/issues so we can make sure to
track and get this resolved?
> --
> 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/-/smRQF-xbwSIJ.
> 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.



--
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: m.ped...@icelus.org -- Twitter: pedersentg
Reply all
Reply to author
Forward
0 new messages