Changeset 198:9da279d9fd39

Show
Ignore:
Timestamp:
09/26/09 13:03:02 (11 months ago)
Author:
rgrp
Branch:
default
convert_revision:
svn:0ead1229-0713-0410-96cd-f668dbfad531/trunk@286
Message:

[multi][xs]: change dropdown list on multi index page to show titles rather than names.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • shakespeare/controllers/multi.py

    r197 r198  
    1414 
    1515    def index(self): 
    16         names = [ m.name for m in model.Material.query.all() ] 
     16        options = [ (m.title, m.name) for m in model.Material.query.all() ] 
    1717        c.text_options = h.options_for_select( 
    18                 names 
     18                options 
    1919                ) 
    2020        return render('multi/index.html')