From 33a78e2b7c3713dab54fc22caa4baae0aef93be7 Mon Sep 17 00:00:00 2001 From: Juan Marulanda Date: Thu, 11 Jan 2024 17:53:27 -0500 Subject: [PATCH] Make structure family a property on the client side --- tiled/client/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tiled/client/base.py b/tiled/client/base.py index a40978120..d5b73d1d1 100644 --- a/tiled/client/base.py +++ b/tiled/client/base.py @@ -172,6 +172,11 @@ def uri(self): "Direct link to this entry" return self.item["links"]["self"] + @property + def structure_family(self): + "Quick access to this entry" + return self.item["attributes"]["structure_family"] + def new_variation(self, structure_clients=UNCHANGED, **kwargs): """ This is intended primarily for internal use and use by subclasses.