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