X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FCreateGid.py;h=eb001a1c2f6ad514349a50b9e5ad1e3c28417e64;hb=cf630d87d633f3861e3ac8a50433fa29ca46a74e;hp=7c1bf8ace4244986d4551081f802bfe52bf2b6a2;hpb=3935901ee1fe60a9e29f26666bfcdeb8dcd1d9a6;p=sfa.git diff --git a/sfa/methods/CreateGid.py b/sfa/methods/CreateGid.py index 7c1bf8ac..eb001a1c 100644 --- a/sfa/methods/CreateGid.py +++ b/sfa/methods/CreateGid.py @@ -1,9 +1,8 @@ -### $Id: register.py 16477 2010-01-05 16:31:37Z thierry $ -### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/register.py $ from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + +from sfa.storage.parameter import Parameter, Mixed from sfa.trust.credential import Credential class CreateGid(Method): @@ -45,6 +44,4 @@ class CreateGid(Method): origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn() self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, xrn, self.name)) - manager = self.api.get_interface_manager() - - return manager.create_gid(self.api, xrn, cert) + return self.api.manager.CreateGid(self.api, xrn, cert)