Changeset c283cb9 for gutenbach-web/root.py
- Timestamp:
- Feb 26, 2009, 1:40:49 AM (16 years ago)
- Branches:
- master, debian, mac, no-cups, web
- Children:
- e0a78b1
- Parents:
- bed8e5d
- git-author:
- Edward Z. Yang <edwardzyang@…> (02/26/09 01:40:49)
- git-committer:
- Edward Z. Yang <edwardzyang@…> (02/26/09 01:40:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach-web/root.py
r0b8c868 rc283cb9 28 28 out = dict(page="index") 29 29 volume = int(remctl(server, command=["volume", "get"]).stdout.rstrip()) 30 playing = remctl(server, command=["status", "get"]).stdout 31 # Todo: add better parsing 32 if not playing: playing = "Nothing playing" 30 33 if not "volume" in kw: kw["volume"] = volume 31 34 return dict( 32 35 page="index", 36 playing=playing, 33 37 volume=volume, 34 38 volume_form=volume_form,
Note: See TracChangeset
for help on using the changeset viewer.