def GetListCollection(self):
        """Returns List information for current Site"""
        # Build Request
        soap_request = soap('GetListCollection')
        self.last_request = str(soap_request)

        # Send Request
        response = self._session.post(url=self._url('SiteData'),
                                      headers=self._headers('GetListCollection'),
                                      data=str(soap_request),
                                      verify=self._verify_ssl,
                                      timeout=self.timeout)

        # Parse Response
        if response.status_code == 200:
            envelope = etree.fromstring(response.text.encode('utf-8'), parser=etree.XMLParser(huge_tree=self.huge_tree))
            result = envelope[0][0][0].text
            lists = envelope[0][0][1]
            data = []
            for _list in lists:
                _list_data = {}
                for item in _list:
                    key = item.tag.replace('{http://schemas.microsoft.com/sharepoint/soap/}', '')
                    value = item.text
                    _list_data[key] = value
                data.append(_list_data)

            return data
        else:
            return response
def GetListCollection ( self ) : soap_request = soap ( 'GetListCollection' ) self . last_request = str ( soap_request ) response = self . _session . post ( url = self . _url ( 'SiteData' ) , headers = self . _headers ( 'GetListCollection' ) , data = str ( soap_request ) , verify = self . _verify_ssl , timeout = self . timeout ) if response . status_code == 200 : envelope = etree . fromstring ( response . text . encode ( 'utf-8' ) , parser = etree . XMLParser ( huge_tree = self . huge_tree ) ) result = envelope [ 0 ] [ 0 ] [ 0 ] . text lists = envelope [ 0 ] [ 0 ] [ 1 ] data = [ ] for _list in lists : _list_data = { } for item in _list : key = item . tag . replace ( '{http://schemas.microsoft.com/sharepoint/soap/}' , '' ) value = item . text _list_data [ key ] = value data . append ( _list_data ) return data else : return response
Returns List information for current Site