@staticmethod
    def corelinkformat(resource):
        msg = "<" + resource.path + ">;"
        assert(isinstance(resource, Resource))
        for k in resource.attributes:
            method = getattr(resource, defines.corelinkformat[k], None)
            if method is not None and method != "":
                v = method
                msg = msg[:-1] + ";" + str(v) + ","
            else:
                v = resource.attributes[k]
                if v is not None:
                    msg = msg[:-1] + ";" + k + "=" + v + ","
        return msg
This method converts trac comment to youtrack comment
dataset/ETHPy150Open Tanganelli/CoAPthon/coapthon/layers/resourcelayer.py/ResourceLayer.corelinkformat--crossover with--dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/trac2youtrack.py/to_youtrack_comment