Changeset 259:f0498fdc0664

Show
Ignore:
Timestamp:
01/31/10 22:09:50 (6 months ago)
Author:
rgrp <http://rufuspollock.org>
Branch:
default
Message:

[controllers/stats,bugfix][xs]: default id=None on word method for case of visiting index page (like cset:65f3734fb1d1).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • shakespeare/controllers/stats.py

    r253 r259  
    3737        return render('stats/text.html') 
    3838 
     39    # TODO: implement caching! -- this is massive (every word in shakespeare) 
    3940    def word_index(self): 
    4041        import sqlalchemy.sql as sql 
     
    4445        return render('stats/word_index.html') 
    4546     
    46     def word(self, id): 
     47    def word(self, id=None): 
    4748        if id is None: 
    4849            return self.word_index()