Exemple #1
0
    def obj_get(self, request=None, **kwargs):
        v = Vlille()
        v.load_stations()
        for station in v.stations:
            if station.id == int(kwargs['pk']):
                station.refresh()
                return station

        return None
from vlille import Vlille

v = Vlille()

v.load_stations()
v.refresh_stations()

for station in v.stations:
	print station
	print station.to_json()


Exemple #3
0
    def get_object_list(self, bundle):
        v = Vlille()

        v.load_stations()
        
        return v.stations