Exemplo n.º 1
0
def _get(id, type):
    ''' Return a single person '''
    result = query("{0}/{1}/{2}/".format(
        settings.BASE_URL,
        type,
        str(id))
    )
    return result
Exemplo n.º 2
0
 def __init__(self, list_of_urls):
     super(FilmQuerySet, self).__init__()
     for url in list_of_urls:
         response = query(url)
         self.items.append(Film(response.content))
Exemplo n.º 3
0
 def get_homeworld(self):
     response = query(self.homeworld)
     return Planet(response.content)
Exemplo n.º 4
0
 def __init__(self, list_of_urls):
     super(FilmQuerySet, self).__init__()
     for url in list_of_urls:
         response = query(url)
         self.items.append(Film(response.content))
Exemplo n.º 5
0
 def get_homeworld(self):
     response = query(self.homeworld)
     return Planet(response.content)
Exemplo n.º 6
0
def _get(id, type):
    ''' Return a single person '''
    result = query("{0}/{1}/{2}/".format(settings.BASE_URL, type, str(id)))
    return result