Changeset c283cb9
- 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)
- Location:
- gutenbach-web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach-web/index.html
r0b8c868 rc283cb9 14 14 <body> 15 15 <div id="status"> 16 <p>Currently playing:</p> 17 <pre>$playing</pre> 16 18 <p>The volume is <span id="volume">$volume</span></p> 17 19 <div py:replace="volume_form(volume_data)"></div> -
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.