Exemple #1
0
def fav_place(uri, data={}):
    """Switch favorite status of the place.
    """
    sv = veggiesailor.StorageFav()
    return sv.switch(uri, 1, data)
Exemple #2
0
def fav_cities():
    """Get favorite places.
    """
    sv = veggiesailor.StorageFav()
    results = sv.get_favorites(0)
    return results
Exemple #3
0
def fav_place_check(uri):
    """Check is place is favorite.
    """
    return veggiesailor.StorageFav().exists(uri)