예제 #1
0
파일: views.py 프로젝트: aroman/telecomando
def home(request):
    return render_to_response('sonoro.html', {
        'changed' : False,
        'current_volume': changevolume.get_volume(),
        }
    )
예제 #2
0
파일: views.py 프로젝트: aroman/telecomando
def set_volume(request, volume):
    changevolume.set_volume(int(volume))
    return HttpResponse(changevolume.get_volume())