-every time an ACL group is edited, automatically
  -add hosts to everyone if they aren't a member of any group
  -remove hosts from everyone if they're a member of any other group
-simplify job block logic in models.py back to the way it used to be.
-get rid of some dead code in model_logic.  we can resurrect it later if we need it later.



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1738 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index a0faa78..346c09c 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -194,12 +194,14 @@
     hosts = [models.Host.smart_get(host) for host in hosts]
     group = models.AclGroup.smart_get(id)
     group.hosts.add(*hosts)
+    group.on_host_membership_change()
 
 
 def acl_group_remove_hosts(id, hosts):
     hosts = [models.Host.smart_get(host) for host in hosts]
     group = models.AclGroup.smart_get(id)
     group.hosts.remove(*hosts)
+    group.on_host_membership_change()
 
 
 def delete_acl_group(id):