From b5a36516c1b81bb066d65dbca738fb41634cf0ec Mon Sep 17 00:00:00 2001 From: Chinmay Pendharkar Date: Thu, 18 Jul 2024 17:34:04 +0800 Subject: [PATCH] fix(fjagepy): allow the _to_json of AgentID to be used to generate the stringified values --- gateways/python/fjagepy/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gateways/python/fjagepy/__init__.py b/gateways/python/fjagepy/__init__.py index d37ca027..6e391877 100644 --- a/gateways/python/fjagepy/__init__.py +++ b/gateways/python/fjagepy/__init__.py @@ -287,8 +287,6 @@ def __init__(self, inReplyTo=None, perf=Performative.INFORM, **kwargs): if not k.startswith('_') and k.endswith('_'): k = k[:-1] self.__dict__[k] = v - if isinstance(v, AgentID): - self.__dict__[k] = v.name def __getattribute__(self, name): if name == 'performative': @@ -407,8 +405,6 @@ def setclazz(self, **kwargs): if not k.startswith('_') and k.endswith('_'): k = k[:-1] self.__dict__[k] = v - if isinstance(v, AgentID): - self.__dict__[k] = v.name sname = name.split('.')[-1] class_ = type(sname, (parent,), {"__init__": setclazz}) @@ -532,8 +528,6 @@ def __init__(self, **kwargs): if not k.startswith('_') and k.endswith('_'): k = k[:-1] self.__dict__[k] = v - if isinstance(v, AgentID): - self.__dict__[k] = v.name class Gateway: