Re: default permission overriding

2011-02-24 Thread Chris McDonough
On Thu, 2011-02-24 at 23:33 -0600, Michael Merickel wrote: > For the record, I mentioned that constant in the interfaces.py the > other day and Chris didn't realize it was there... it's also > undocumented. He went so far as to suggest removing it. > > > If there's going to be a constant anywhere

Re: default permission overriding

2011-02-24 Thread Michael Merickel
For the record, I mentioned that constant in the interfaces.py the other day and Chris didn't realize it was there... it's also undocumented. He went so far as to suggest removing it. If there's going to be a constant anywhere, I'd imagine it should be in pyramid.security. Michael On Tue, Feb 2

Re: default permission overriding

2011-02-22 Thread Daniel Holth
There is a constant. It is called pyramid.interfaces.NO_PERMISSION_REQUIRED ; however, the string is documented. This probably makes the documentation shorter because you would have to use the string if you are configuring with ZCML. This is /only/ required at all when you need your application to

Re: default permission overriding

2011-02-22 Thread Chris Withers
On 22/02/2011 20:17, Alice Bevan–McGregor wrote: Create an empty object instance called NoDefault and use that in place of None, allowing None to be passed as a legitimate value. My 2¢. My 2p too :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting -

Re: default permission overriding

2011-02-22 Thread Alice Bevan–McGregor
Create an empty object instance called NoDefault and use that in place of None, allowing None to be passed as a legitimate value. My 2¢. — Alice. On 2011-02-19 11:53:21 -0800, danjac...@gmail.com said: As an aside, it would be a good idea to have a constant value instead of "__no_p

Re: default permission overriding

2011-02-19 Thread danjac...@gmail.com
As an aside, it would be a good idea to have a constant value instead of "__no_permission_required__". On 18 February 2011 17:14, Chris Withers wrote: > On 18/02/2011 16:48, Chris McDonough wrote: >>> >>> @view_config(context=Blog, name='add_entry.html', permission=None) >>> >>> ...seems an expli

Re: default permission overriding

2011-02-18 Thread Chris Withers
On 18/02/2011 16:48, Chris McDonough wrote: @view_config(context=Blog, name='add_entry.html', permission=None) ...seems an explicit and less cumbersome way of specifying the same thing, what am I missing? You're missing the fact that the default value of the permission= argument to view_config

Re: default permission overriding

2011-02-18 Thread Chris McDonough
On Fri, 2011-02-18 at 16:43 +, Chris Withers wrote: > Hi All, > > Glad to see this feature: > http://docs.pylonsproject.org/projects/pyramid/1.0/narr/security.html#setting-a-default-permission > > Slightly confused by the cumbersome '__no_permission_required__' > requirement. > > @view_conf

default permission overriding

2011-02-18 Thread Chris Withers
Hi All, Glad to see this feature: http://docs.pylonsproject.org/projects/pyramid/1.0/narr/security.html#setting-a-default-permission Slightly confused by the cumbersome '__no_permission_required__' requirement. @view_config(context=Blog, name='add_entry.html', permission=None) ...seems an ex