I'm working off the 0.9a9 release, which I'm enjoying quite a bit. It's
still a little rough, but pretty painless for most tasks. Or was, until
I started trying to integrate Identity. Identity is a great toolkit,
but the documentation is a little scanty, and it uses just enough
features to expose my setup's flaws.

Here's what I figured out, so other people don't need to figure them
out.

1. @identity.require(identity.not_anonymous()) prevents a page from
being accessed without a valid login. :D

2. My Apache setup right now is in a VirtualHost, but it works just
like all the docs say it should:
    RewriteEngine on
    RewriteRule ^/(.*) http://127.0.0.1:8080/$1 [P]
    RewriteRule ^(.*) http://127.0.0.1:8080$1 [P]

3. After the RewriteRule goes in place, things aren't perfect yet. In
my dev.cfg I change things thus:
    identity.on = True
    identity.failure_url = "/login"
    base_url_filter.on = True
    base_url_filter.use_x_forwarded_host = True

4. I also had to change the default signature for login in
controllers.py (maybe this has been changed/fixed):
    def login(self, forward_url="", previous_url="", *args, **kw):

Hope this is helpful. :)

Thanks,
--G.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to