Ignore:
Timestamp:
Jul 6, 2010, 7:56:47 PM (15 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
web
Children:
9c72c3b
Parents:
0d02eca
git-author:
Jessica B. Hamrick <jhamrick@…> (07/06/10 19:56:47)
git-committer:
Jessica B. Hamrick <jhamrick@…> (07/06/10 19:56:47)
Message:

Preserve directory hierarchy (not sure what happened to it)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • web/old/sipbmp3web/controllers/root.py

    r30beeab rf6f3e91  
    1414from sipbmp3web.widgets.slider import UISlider
    1515
    16 volume_form = twf.TableForm('volume_form', action='volume', children=[
     16volume_form = twf.TableForm('volume_form', action='https://sipb.mit.edu:444/sipbmp3/volume', children=[
    1717    UISlider('volume', min=1, max=31, validator=twf.validators.NotEmpty())
    1818])
     
    4141    @expose()
    4242    def volume(self, **kw):
    43         server = config['sipbmp3.server']
    44         remctl(server, command=["volume", "set", kw["volume"]])
     43        if 'SSL_CLIENT_S_DN_Email' in request.environ:
     44            server = config['sipbmp3.server']
     45            remctl(server, command=["volume", "set", kw["volume"], 'by='+request.environ['SSL_CLIENT_S_DN_Email']])
    4546        redirect('index')
    4647
Note: See TracChangeset for help on using the changeset viewer.