X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FGetSelfCredential.py;h=c67bf4be2083f6c21f4c7817083bac977d886888;hb=3d51e29695f79b143974f5cf7b2e104d89626ba4;hp=4022008988fbf2f7b62b71ecaa35f5bcdd350645;hpb=108f6d000af6517d3b22501255b377a83568b946;p=sfa.git diff --git a/sfa/methods/GetSelfCredential.py b/sfa/methods/GetSelfCredential.py index 40220089..c67bf4be 100644 --- a/sfa/methods/GetSelfCredential.py +++ b/sfa/methods/GetSelfCredential.py @@ -57,7 +57,7 @@ class GetSelfCredential(Method): ### authenticate the gid # import here so we can load this module at build-time for sfa2wsdl #from sfa.storage.alchemy import dbsession - from sfa.storage.persistentobjs import RegRecord + from sfa.storage.model import RegRecord # xxx-local - the current code runs Resolve, which would forward to # another registry if needed @@ -84,4 +84,4 @@ class GetSelfCredential(Method): self.api.logger.debug("ConnectionKeyGIDMismatch, %s filename: %s"%(name,obj.filename)) raise ConnectionKeyGIDMismatch(gid.get_subject()) - return self.api.manager.GetCredential(self.api, xrn, type, is_self=True) + return self.api.manager.GetCredential(self.api, xrn, type)