def get_all_confirmed(self, raise_exceptions=True):
     context = aq_inner(self.context)
     if not _checkPermission("collective.depositbox: View Data", context):
         if raise_exceptions:
             raise Unauthorized("Not allowed to get confirmed data.")
         return []
     box = IDepositBox(context)
     return box.get_all_confirmed()
 def edit(self, secret, value, token=None):
     context = aq_inner(self.context)
     box = IDepositBox(context)
     box.edit(secret, value, token=token)
 def confirm(self, secret, token=None):
     context = aq_inner(self.context)
     box = IDepositBox(context)
     confirmed = box.confirm(secret, token=token)
     return confirmed
 def pop(self, secret, token=None):
     context = aq_inner(self.context)
     box = IDepositBox(context)
     stored = box.pop(secret, token=token)
     return stored
 def put(self, value, token=None):
     context = aq_inner(self.context)
     box = IDepositBox(context)
     secret = box.put(value, token=token)
     return secret