fix duplicate arg in helpers
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 23 Nov 2010 08:47:45 +0000 (09:47 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 23 Nov 2010 08:47:45 +0000 (09:47 +0100)
PLC/Accessors/Accessors-5.0-rc16.readme [moved from PLC/Accessors/Accessors_5.0-rc16.readme with 100% similarity]
PLC/Accessors/Accessors_site.py
PLC/AuthorizeHelpers.py
PLC/Methods/GetPersons.py

index f1305c2..184e43d 100644 (file)
@@ -1,6 +1,5 @@
+#
 # Thierry Parmentelat - INRIA
-# $Id$
-# $URL$
 #
 # Accessors_site.py is the place where you can define your own local tag accessors
 # this will not be overwritten through rpm upgrades
index 7cbc5ab..9b77238 100644 (file)
@@ -36,8 +36,8 @@ class AuthorizeHelpers:
         return caller_person['person_id'] in slice['person_ids']
 
     @staticmethod
-    def slice_in_site (api, slice, slice):
-        return caller_person['person_id'] in slice['person_ids']
+    def slice_in_site (api, slice, site):
+        return slice['site_id']==site['site_id']
 
     @staticmethod
     def node_id_in_slice (api, node_id_or_hostname, slice):
index 3ebf871..6302765 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed