Changeset f6f3e91
- Timestamp:
- Jul 6, 2010, 7:56:47 PM (14 years ago)
- 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)
- 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. 1 This file is for you to describe the sipbmp3-web application. Typically 2 you would include information such as the information below: 4 3 5 For your convenience, you may use the following svn:externals definition:: 4 Installation and Setup 5 ====================== 6 6 7 ez_setup svn://svn.eby-sarna.com/svnroot/ez_setup 7 Install ``sipbmp3-web`` using the setup.py script:: 8 8 9 You can set this by executing this command in your project directory:: 9 $ cd sipbmp3-web 10 $ python setup.py install 10 11 11 svn propedit svn:externals . 12 Create the project database for any model classes defined:: 12 13 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 16 Start the paste http server:: 17 18 $ paster serve development.ini 19 20 While 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 24 Then you are ready to go. -
web/old/sipbmp3web/controllers/root.py
r30beeab rf6f3e91 14 14 from sipbmp3web.widgets.slider import UISlider 15 15 16 volume_form = twf.TableForm('volume_form', action=' volume', children=[16 volume_form = twf.TableForm('volume_form', action='https://sipb.mit.edu:444/sipbmp3/volume', children=[ 17 17 UISlider('volume', min=1, max=31, validator=twf.validators.NotEmpty()) 18 18 ]) … … 41 41 @expose() 42 42 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']]) 45 46 redirect('index') 46 47 -
web/old/sipbmp3web/public/css/style.css
r30beeab rf6f3e91 107 107 display:none; 108 108 } 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 25 25 <li><a href="${tg.url('/about')}" class="${('', 'active')[defined('page') and page==page=='about']}">About</a></li> 26 26 <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> 28 28 </ul> 29 29 <div id="content">
Note: See TracChangeset
for help on using the changeset viewer.