# zet/plugs/allow.py
#
#
""" add to allow list. """
__copyright__ = "Copyright 2015, B.H.J Thate"
## IMPORTS
from zet.runtime import kernel
# COMMANDS
[docs]def allow(event):
from zet.object import Object
rest = event.rest()
if not rest: return
o = Object()
o.prepath = "allow"
o.allowed = rest
o.save()
event.ok()
kernel.register("allow", allow)