2021-11-29 08:37:52 +01:00
|
|
|
from halfapi.lib import acl
|
2021-12-13 12:40:40 +01:00
|
|
|
from halfapi.lib.acl import public, private
|
2021-11-29 06:09:18 +01:00
|
|
|
from random import randint
|
|
|
|
|
2021-12-06 08:29:21 +01:00
|
|
|
def random(*args):
|
2021-11-30 18:31:40 +01:00
|
|
|
""" Random access ACL
|
|
|
|
"""
|
2021-11-29 08:37:52 +01:00
|
|
|
return randint(0,1) == 1
|
2021-11-29 06:09:18 +01:00
|
|
|
|
2021-11-30 18:31:40 +01:00
|
|
|
ACLS = (
|
|
|
|
('public', public.__doc__, 999),
|
|
|
|
('random', random.__doc__, 10),
|
2021-12-13 12:40:40 +01:00
|
|
|
('private', private.__doc__, 0)
|
2021-11-30 18:31:40 +01:00
|
|
|
)
|