Changeset f6f3e91


Ignore:
Timestamp:
Jul 6, 2010, 7:56:47 PM (14 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)

Location:
web/old
Files:
473 added
1 edited
90 moved

Legend:

Unmodified
Added
Removed
  • web/old/README.txt

    r30beeab rf6f3e91  
    1 This directory exists so that Subversion-based projects can share a single
    2 copy of the ``ez_setup`` bootstrap module for ``setuptools``, and have it
    3 automatically updated in their projects when ``setuptools`` is updated.
     1This file is for you to describe the sipbmp3-web application. Typically
     2you would include information such as the information below:
    43
    5 For your convenience, you may use the following svn:externals definition::
     4Installation and Setup
     5======================
    66
    7     ez_setup svn://svn.eby-sarna.com/svnroot/ez_setup
     7Install ``sipbmp3-web`` using the setup.py script::
    88
    9 You can set this by executing this command in your project directory::
     9    $ cd sipbmp3-web
     10    $ python setup.py install
    1011
    11     svn propedit svn:externals .
     12Create the project database for any model classes defined::
    1213
    13 And then adding the line shown above to the file that comes up for editing.
    14 Then, whenever you update your project, ``ez_setup`` will be updated as well.
     14    $ paster setup-app development.ini
     15
     16Start the paste http server::
     17
     18    $ paster serve development.ini
     19
     20While developing you may want the server to reload after changes in package files (or its dependencies) are saved. This can be achieved easily by adding the --reload option::
     21
     22    $ paster serve --reload development.ini
     23
     24Then you are ready to go.
  • 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
  • web/old/sipbmp3web/public/css/style.css

    r30beeab rf6f3e91  
    107107    display:none;
    108108}
     109
     110.link-mailto
     111{
     112    background: url(mail_icon.gif) center right no-repeat;
     113    padding: 0 18px 0 0;
     114}
  • web/old/sipbmp3web/templates/master.html

    r30beeab rf6f3e91  
    2525        <li><a href="${tg.url('/about')}" class="${('', 'active')[defined('page') and page==page=='about']}">About</a></li>
    2626        <li><a href="${tg.url('/todo')}" class="${('', 'active')[defined('page') and page==page=='todo']}">Todo</a></li>
    27         <li><a href="mailto:sipb@mit.edu">Contact</a></li>
     27        <li><a class='link-mailto' href="mailto:sipb@mit.edu">Contact</a></li>
    2828  </ul>
    2929  <div id="content">
Note: See TracChangeset for help on using the changeset viewer.