Beispiel #1
0
 def __iter__(self):
     "Behave as a tuple or more precisely as a urlparse.ParseResult"
     yield self.scheme
     yield self.netloc
     path = str(self.path)
     if path == '':
         path = '/'
     yield path
     yield self.params
     yield queryimplode(self.query)
     yield self.fragment
Beispiel #2
0
 def __iter__(self):
     "Behave as a tuple or more precisely as a urlparse.ParseResult"
     yield self.scheme
     yield self.netloc
     path = str(self.path)
     if path == '':
         path = '/'
     yield path
     yield self.params
     yield queryimplode(self.query)
     yield self.fragment
Beispiel #3
0
 def abs_path_query(self):
     """Return the absolute path and query components as a single string.
     The path and the query are separated by a "?" character."""
     return self.abs_path + "?" + queryimplode(self.query)