4 from sfa.trust.certificate import Keypair, convert_public_key
5 from sfa.trust.gid import *
6 from sfa.util.faults import *
7 from sfa.util.method import Method
8 from sfa.util.parameter import Parameter, Mixed
9 from sfa.methods.Register import Register
11 class register(Register):
13 Deprecated. Used Register instead.
15 Register an object with the registry. In addition to being stored in the
16 SFA database, the appropriate records will also be created in the
19 @param cred credential string
20 @param record_dict dictionary containing record fields
22 @return gid string representation
25 interfaces = ['registry']
28 Parameter(str, "Credential string"),
29 Parameter(dict, "Record dictionary containing record fields")
32 returns = Parameter(int, "String representation of gid object")
34 def call(self, cred, record, origin_hrn=None):
36 return Register.call(self, record, cred)