I can't seem to get a default permission for the static folder set
within my project.  I've attempted a few different methods of setting
up the authorization policy and defaults but I continue to get
ACLDenied permission output in the debug.

Setup for authentication policy and the static view:

authn_policy = AuthTktAuthenticationPolicy('supersecret',
callback=groupfinder)
authz_policy = ACLAuthorizationPolicy()
config = Configurator(settings=settings,
                          root_factory='myproject.models.RootFactory',
                          authentication_policy=authn_policy,
                          authorization_policy=authz_policy)
config.set_request_factory(RequestWithUserAttribute)
config.add_static_view(name='static',
                           path='myproject:static',
                           permssion='__no_permission_required__')


An example of the debug_authorization messages I'm receiving.  This
occurs for every static file being served:

debug_authorization of url http://localhost:6543/static/images/image.png
(view name u'' against context <pyramid.static.StaticURLInfo object at
0xb0ecd6c>): ACLDenied permission '__no_permission_required__' via ACE
'<default deny>' in ACL '<No ACL found on any object in resource
lineage>' on context <pyramid.static.StaticURLInfo object at
0xb0ecd6c> for principals ['system.Everyone']

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to