Beispiel #1
0
def rpc_unwatch(request):
    groups = request.POST.get('group', [])
    if not isinstance(groups, (list, tuple)):
        groups = [groups]
    for group in groups:
        Group.update(watch=False).where(Group.name == group).execute()
    return ''
Beispiel #2
0
def rpc_unwatch(request):
  groups = request.POST.get('group', [])
  if not isinstance(groups, (list, tuple)):
    groups = [ groups ]
  for group in groups:
    Group.update(watch=False).where(Group.name == group).execute()
  return ''