Esempio n. 1
0
 def create(auth_dict):
     auth_type = auth_dict['type']
     auth_obj_def = ResourceAuth.get_auth_defs()[auth_type]
     auth_obj = Factory.create_obj(
         Factory.full_class_name_for_obj(auth_obj_def))
     auth_obj.init(auth_dict)
     return auth_obj