File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -278,37 +278,6 @@ def _set_entries(self, response: Element):
278278 self .entries .append (an_entry )
279279
280280
281- class PolicyList :
282- """Convienience class represents policy list"""
283-
284- entries : list [PolicyEntry ] = []
285-
286- def first (self ) -> PolicyEntry | None :
287- if len (self .entries ) >= 1 :
288- return self .entries [0 ]
289- return None
290-
291- def __iter__ (self ):
292- return iter (self .entries )
293-
294- def __init__ (self , a_response : Element ):
295- """"""
296- self ._set_entries (response = a_response )
297-
298- def _set_entries (self , response : Element ):
299- a_list = list (response )
300-
301- for elem in a_list :
302- if elem .tag != "policy" :
303- continue
304-
305- an_entry = PolicyEntry (
306- policyid = list (elem )[0 ].text , # type:ignore
307- policyname = list (elem )[1 ].text , # type:ignore
308- )
309- self .entries .append (an_entry )
310-
311-
312281class ServerSettings :
313282 """Convienience class represents server settings"""
314283
You can’t perform that action at this time.
0 commit comments