Skip to content

Commit ad8bdc4

Browse files
author
afabiani
committed
2 parents 407fcbc + f95a6be commit ad8bdc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/geoserver/layer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def resource(self):
134134
if self.dom is None:
135135
self.fetch()
136136
name = self.dom.find("resource/name").text
137-
atom_link = [n for n in self.dom.find("resource").getchildren() if 'href' in n.attrib]
137+
atom_link = [n for n in self.dom.find("resource") if 'href' in n.attrib]
138138
ws_name = workspace_from_url(atom_link[0].get('href'))
139139
if self.gs_version >= "2.13":
140140
if ":" in name:
@@ -158,7 +158,7 @@ def _resolve_style(self, element):
158158
else:
159159
style_name = element.find('name').text
160160
ws_name = None
161-
atom_link = [n for n in element.getchildren() if 'href' in n.attrib]
161+
atom_link = [n for n in element if 'href' in n.attrib]
162162
if atom_link and ws_name is None:
163163
ws_name = workspace_from_url(atom_link[0].get("href"))
164164
return self.catalog.get_styles(names=style_name, workspaces=ws_name)[0]

0 commit comments

Comments
 (0)