Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'skip:[ 20': 0.04; 'syntax': 0.04; 'json': 0.07; 'logic': 0.09; 'wrong,': 0.09; 'python': 0.11; 'itself.': 0.14; '"1.0",': 0.16; 'clear.': 0.16; 'reasonably': 0.16; 'skip:[ 40': 0.16; 'restrictions': 0.19; 'addition,': 0.20; 'seems': 0.21; 'example': 0.22; 'to:name :python-list@python.org': 0.22; "aren't": 0.24; 'documented': 0.24; 'received:65.55.116': 0.24; 'sort': 0.25; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'record': 0.27; 'idea': 0.28; 'skip:- 40': 0.29; 'wondering': 0.29; '[1]': 0.29; "i'm": 0.30; 'url:mailman': 0.30; 'compatible': 0.32; 'url:python': 0.33; 'fri,': 0.33; 'role': 0.34; 'date:': 0.34; 'sense': 0.34; 'but': 0.35; 'google': 0.35; 'there': 0.35; 'accessible': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'url:org': 0.36; 'should': 0.36; 'integration': 0.37; 'application': 0.37; 'email addr:python.org': 0.37; 'security,': 0.38; 'to:addr:python-list': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'deleting': 0.60; 'hope': 0.61; 'email addr:gmail.com': 0.63; 'more': 0.64; 'different': 0.65; 'email name:python-list': 0.65; 'below.': 0.71; 'viewed': 0.74; '"required":': 0.84; "it'd": 0.84; 'subject:Using': 0.84; '2013': 0.98 X-TMN: [zaNkQxFuF+3o6oKCVDIYOp9to7L1XREU] X-Originating-Email: [carlosnepomuceno@outlook.com] From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: Using ACLs in JSON Date: Fri, 24 May 2013 19:13:15 +0300 Importance: Normal In-Reply-To: <6e35fb87-6c6b-4fcc-a99c-199af8b1a4c1@k3g2000vbn.googlegroups.com> References: <6e35fb87-6c6b-4fcc-a99c-199af8b1a4c1@k3g2000vbn.googlegroups.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 24 May 2013 16:13:15.0942 (UTC) FILETIME=[98EFDC60:01CE5899] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 58 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369411998 news.xs4all.nl 15936 [2001:888:2000:d::a6]:43663 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45899 Not exactly what you want but you may consider Google ACL XML[1].=0A= =0A= If there aren't any system integration restrictions you can do what you thi= nk it's best... for now.=0A= =0A= =0A= [1] https://developers.google.com/storage/docs/accesscontrol#applyacls=0A= =0A= =0A= ----------------------------------------=0A= > Date: Fri=2C 24 May 2013 01:18:06 -0700=0A= > Subject: Using ACLs in JSON=0A= > From: peter.h.m.brooks@gmail.com=0A= > To: python-list@python.org=0A= >=0A= > I'm designing a system that should allow different views to different=0A= > audiences. I understand that I can use application logic to control=0A= > the access security=2C but it seems to me that it'd make more sense to=0A= > have this documented in the data-stream so that it's data-driven.=0A= >=0A= > I was wondering if there was any standard way of doing this in JSON.=0A= > Alternatively=2C is there a better way of organising this in Python=0A= > that's compatible with JSON?=0A= >=0A= > I've put an example of the sort of thing that I mean below. The idea=0A= > is that this object is accessible for viewing or deleting by the role=0A= > 'HR' and available for change only to the owner of the record itself.=0A= > In addition=2C the record can be viewed by those with the role=0A= > 'manager'. The syntax may be wrong=2C but I hope that my intention is=0A= > reasonably clear.=0A= >=0A= > Is there an existing practice or standard for doing this sort of=0A= > thing?=0A= >=0A= > {=0A= > "title" : "Example Schema"=2C=0A= > "type" : "object"=2C=0A= > "version" : "1.0"=2C=0A= > "properties": {=0A= > "firstname" : {=0A= > "type": "string"=0A= > }=2C=0A= > "lastname" : {=0A= > "type": "string"=0A= > }=2C=0A= > "age" : {=0A= > "description" : "Age in years"=2C=0A= > "type": "integer"=2C=0A= > "minimum": 0=0A= > }=0A= > }=2C=0A= > "ACL-view": ["HR"=2C"Manager"=2C["firstname"=2C"lastname"]]=2C=0A= > "ACL-change": ["firstname"=2C"Lastname"]=2C=0A= > "ACL-delete": ["HR"]=2C=0A= > "required": ["firstname"=2C"lastname"]=0A= > }=0A= > --=0A= > http://mail.python.org/mailman/listinfo/python-list =