]>
git.datanom.net - pwp.git/blob - test.py
2 from app
import db
, models
5 u
= models
.User
.query
.get(4)
6 p
= models
.Portfolio
.query
.get(1)
8 print (q
.has_access(u
,p
))
9 print (q
.can_read(u
,p
))
10 print (q
.can_write(u
,p
))
11 a
= models
.AccessRight
.query
.join(models
.AccessRight
.album
).all()
13 acls
= models
.AccessRight
.query
.filter_by(user
= u
)
16 a
= models
.AccessRight
.query
.join(models
.AccessRight
.album
).filter(acl
== acl
.id)
This page took 0.109131 seconds and 6 git commands to generate.