Re: Object level security and lists of objects

2013-07-29 Thread AM
So theoretically all I need is "something" setting up the dynamic permission and then invoke it on the view object. Would that be correct? Thanks for your patience. I am still trying to wrap my head around the implementation and perhaps coming up short :) AM On 07/29/2013 09:32 AM, Michael Me

Re: Object level security and lists of objects

2013-07-29 Thread Michael Merickel
In that example you'd just have a permission pertaining to whether the a request has access to a user's items resource. From there your view logic will be responsible for loading the correct list of objects for the request. If each object had its own acl you could go ahead and invoke has_permission

Object level security and lists of objects

2013-07-29 Thread Ams Fwd
Hi All. I have been trying to setup a hierarchical security policy and dynamic permissions and the following have been very useful: http://michael.merickel.org/projects/pyramid_auth_demo/index.html http://stackoverflow.com/questions/5761617/pyramid-authorization-for-stored-items I typically fav

Re: AngularJS and Pyramid: Directory Structure

2013-07-29 Thread Jens W. Klein
On 2013-07-25 22:00, Raoul Snyman wrote: Hi folks, I'm starting a project using AngularJS, and I was wondering what others using AngularJS do for directory structure? Do you follow the app/, etc. directories used by AngularJS? I started with my own directory structure, but things don't seem to