Re: Pylons 0.9.7 RC4 Release

2008-11-25 Thread Ches Martin
Man that is a lovely PDF -- Sphinx and docutils FTW! Kudos to all who've pitched in on Pylons 0.9.7 and the docs effort. -Ches On Nov 24, 8:12 pm, Ben Bangert [EMAIL PROTECTED] wrote: The (hopefully last) Release Candidate of Pylons has been released. The docs at docs.pylonshq.com have been

Re: auth and auth

2008-11-25 Thread Mike Orr
On Mon, Nov 24, 2008 at 10:21 PM, Dalius Dobravolskas [EMAIL PROTECTED] wrote: Hello, Mike, On Tue, Nov 25, 2008 at 12:18 AM, Mike Orr [EMAIL PROTECTED] wrote: I have consolidated the various auth wiki pages into a section in the Pylons Cookbook called Authentication and Authorization.

Re: auth and auth

2008-11-25 Thread Mike Orr
On Mon, Nov 24, 2008 at 10:09 PM, Dalius Dobravolskas [EMAIL PROTECTED] wrote: Hello, On Mon, Nov 24, 2008 at 11:56 PM, Florent Aide [EMAIL PROTECTED] wrote: TurboGears 2 team has chosen repoze.who to implement authentication and has spawned repoze.what to implement authorization. That's

Re: auth and auth

2008-11-25 Thread Mike Orr
On Tue, Nov 25, 2008 at 2:44 AM, Dalius Dobravolskas [EMAIL PROTECTED] wrote: Hello, I will repeat my question: what additional value is created by repoze.who what WSGI can't do? repoze.who *is* WSGI. :) Actually it is more. It is WSGI (layer programming?) + Zope (component programming).

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
Hello, Mike, By component programming you mean the fact that it has plugins? Almost. So by component programming you mean plugins? And that's your main complaint against repoze.who? Actually if we speak about repoze.who against AuthKit in this case, my main complaint is that repoze.who

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
It's a wiki. :) You can edit it yourself. Thank you ;) -- Dalius http://blog.sandbox.lt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
Hello, I will repeat my question: what additional value is created by repoze.who what WSGI can't do? repoze.who *is* WSGI. :) Actually it is more. It is WSGI (layer programming?) + Zope (component programming). I just don't get why mix that? Why WSGI is not enough? And theoretically it

Re: Pylons 0.9.7 RC4 Release

2008-11-25 Thread Michael Bayer
Ben Bangert wrote: - Beaker got several important bug fixes, one for leaving file handles open, and to ensure that the new pickled format is gracefully upgraded from Beaker 1.1.2, *this* is the real deal. Don't believe what all those other Beakers told you. After years of neglect, I've

Re: auth and auth

2008-11-25 Thread Gustavo Narea
On Tuesday November 25, 2008 07:18:56 Dalius Dobravolskas wrote: repoze.what: Looks like TurboGears 1. The main mistake makes everyone when they implement authorization plugin/middleware, they think that everyone builds social networks or simple sites where you have users in groups with

Re: simplejson install error, need help

2008-11-25 Thread Tibor Arpas
Vista and extensions for simplejson and other libraries give me headaches all the time too. Anyway. I think the simplejson library was included in the python 2.6 under the name json. Creating quite a mess because there is already json in python.org/pypi, but different one. Probably the best would

Re: auth and auth

2008-11-25 Thread Gustavo Narea
On Tuesday November 25, 2008 12:29:17 Dalius Dobravolskas wrote: What if you need to combine multiple authentication schemes in the same site? You can add multiple middlewares. The problem is when middlewares or plugins conflict with each other (e.g. because of lack of options).

Re: simplejson install error, need help

2008-11-25 Thread Rod Morison
Agreed on all counts. In _my_ case the problem was a setup bug when simplejson can't find the cl.exe compiler on windows (as posted here previously.) Tibor Arpas wrote: Vista and extensions for simplejson and other libraries give me headaches all the time too. Anyway. I think the

Re: simplejson install error, need help

2008-11-25 Thread Bob Ippolito
If someone submits a patch to simplejson to resolve any of these stupid Windows issues, it will be accepted. I don't personally care for Windows so I don't test it there, the current state of Windows support in simplejson is the way it is because that's what was contributed to me. If someone

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
On Tue, Nov 25, 2008 at 12:19 PM, Gustavo Narea [EMAIL PROTECTED] wrote: On Tuesday November 25, 2008 07:18:56 Dalius Dobravolskas wrote: repoze.what: Looks like TurboGears 1. The main mistake makes everyone when they implement authorization plugin/middleware, they think that everyone builds

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
Hello, On Tue, Nov 25, 2008 at 1:47 PM, Gustavo Narea [EMAIL PROTECTED] wrote: You can add multiple middlewares. The problem is when middlewares or plugins conflict with each other (e.g. because of lack of options). repoze.who does not help to solve this problem. Can you please provide one

Re: simplejson install error, need help

2008-11-25 Thread Rod Morison
I might try to tackle this once I get through some higher order business. No promises, though. Bob Ippolito wrote: If someone submits a patch to simplejson to resolve any of these stupid Windows issues, it will be accepted. I don't personally care for Windows so I don't test it there, the

Re: simplejson install error, need help

2008-11-25 Thread Mike Orr
On Tue, Nov 25, 2008 at 6:38 AM, Tibor Arpas [EMAIL PROTECTED] wrote: Vista and extensions for simplejson and other libraries give me headaches all the time too. Anyway. I think the simplejson library was included in the python 2.6 under the name json. Creating quite a mess because there is

Re: auth and auth

2008-11-25 Thread Gael Pasgrimaud
2008/11/25 Dalius Dobravolskas [EMAIL PROTECTED]: Hello, On Tue, Nov 25, 2008 at 1:47 PM, Gustavo Narea [EMAIL PROTECTED] wrote: You can add multiple middlewares. The problem is when middlewares or plugins conflict with each other (e.g. because of lack of options). repoze.who does not

Re: auth and auth

2008-11-25 Thread Gustavo Narea
On Tuesday November 25, 2008 20:55:15 Dalius Dobravolskas wrote: E.g. similar patches or similarly named cookies while they should be different. I have accidentally named my AuthKit cookie and beaker session the same name once and have had time until I have understood where is problem. I have

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
On Tue, Nov 25, 2008 at 10:54 PM, Gustavo Narea [EMAIL PROTECTED] wrote: Yes, you are wrong, as Gael pointed in the previous message. Come on, there's no such a problem with repoze.who. Gael said that you can change cookie name. That's OK. Problem is different. Do you really even understand the

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
By the way, you can set the repoze.who cookie name to wathever you want. That's OK. Problem is different. The only complication is that you must say hey, my class is an authentifier. Is it really complicated ? There is more actually. I need to understand what is IChallenger, IIdentifier,

Re: auth and auth

2008-11-25 Thread Gael Pasgrimaud
2008/11/25 Dalius Dobravolskas [EMAIL PROTECTED]: By the way, you can set the repoze.who cookie name to wathever you want. That's OK. Problem is different. The only complication is that you must say hey, my class is an authentifier. Is it really complicated ? There is more actually. I need

Re: auth and auth

2008-11-25 Thread Mike Orr
I finished my homegrown auth article with roles and LDAP. http://wiki.pylonshq.com/display/pylonscookbook/Advanced+Homegrown+Auth -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: simplejson install error, need help

2008-11-25 Thread Ben Bangert
On Nov 25, 2008, at 12:43 PM, Mike Orr wrote: Is it possible to limit a dependency to certain versions of Python? It should be. Setup.py is just a Python file, I don't see why I can't test the Python version and toggle the dependencies. Any code in Pylons using simplejson will need a

Re: simplejson install error, need help

2008-11-25 Thread Bob Ippolito
On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote: On Nov 25, 2008, at 12:43 PM, Mike Orr wrote: Is it possible to limit a dependency to certain versions of Python? It should be. Setup.py is just a Python file, I don't see why I can't test the Python version and toggle

Re: simplejson install error, need help

2008-11-25 Thread Bob Ippolito
On Tue, Nov 25, 2008 at 2:42 PM, Bob Ippolito [EMAIL PROTECTED] wrote: On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote: On Nov 25, 2008, at 12:43 PM, Mike Orr wrote: Is it possible to limit a dependency to certain versions of Python? It should be. Setup.py is just a

Re: simplejson install error, need help

2008-11-25 Thread Mike Orr
On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote: On Nov 25, 2008, at 12:43 PM, Mike Orr wrote: Is it possible to limit a dependency to certain versions of Python? It should be. Setup.py is just a Python file, I don't see why I can't test the Python version and toggle

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
Hello, Gael, class UrlPlugin(RedirectingFormPlugin): implements(IChallenger, IIdentifier) # IIdentifier def identify(self, environ): query = parse_dict_querystring(environ) if 'email' in query and 'secret' in query: rememberer =

Re: simplejson install error, need help

2008-11-25 Thread Wichert Akkerman
Previously Mike Orr wrote: On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert [EMAIL PROTECTED] wrote: On Nov 25, 2008, at 12:43 PM, Mike Orr wrote: Is it possible to limit a dependency to certain versions of Python? It should be. Setup.py is just a Python file, I don't see why I can't

Re: auth and auth

2008-11-25 Thread Uwe C. Schroeder
Technically this example does the same as http://trac.sandbox.lt/auth/wiki/AuthFormMiddleware. Instead of writing your plugin you would need to write isauthenticated function that looks almost the same as identify function here. Technically all auth mechanisms do the same. Quite frankly I

Re: auth and auth

2008-11-25 Thread Dalius Dobravolskas
On Wed, Nov 26, 2008 at 8:54 AM, Uwe C. Schroeder [EMAIL PROTECTED] wrote: What is it you want to achieve with this crusade? More popularity? I guess all you'll get is annoyed core developers. I don't care about popularity at all. If I care I have chosen the wrong path. There are two things I