Ejemplo n.º 1
0
 def remove(self, req, id):
     """ Deleted the given calendar"""
     username = req.authname
     req.perm.require('CALENDAR_DELETE', self.calendar_realm(id=id))
     c = Calendar(self.env, id)
     c.delete()
     return cal_as_dict(c, username)