However due to ACL read from db being ACLType wrapped in MutationList I don't know how to compare this value with ACL in source code which is plain Python list.
Any ideas?
Regards,
Piotr Dobrogost
Andreas Kaiser
unread,
Jul 5, 2016, 6:41:47 AM7/5/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kotti
Why not just set it in you populator unconditionally?
Andreas
Piotr Dobrogost
unread,
Jul 6, 2016, 5:47:05 PM7/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kotti
On Tuesday, July 5, 2016 at 12:41:47 PM UTC+2, Andreas Kaiser wrote:
On 1 Jul 2016, at 22:37, Piotr Dobrogost wrote:
> I would like to compare site's ACL
Why not just set it in you populator unconditionally?
Well, I wanted to avoid writing it to db during each start of app if there was no change in ACL.
Piotr
Andreas Kaiser
unread,
Jul 7, 2016, 5:32:22 AM7/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kotti
I don't see how selecting, comparing and then maybe updating saves you
anything over updating a single column unconditionally. IMO not worth
the effort, unless you have another reason for doing so.