Changeset - 7a97f0b100cd
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-05-24 01:10:09
marcin@python-works.com
bugfix
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pylons_app/controllers/changelog.py
Show inline comments
 
@@ -15,15 +15,15 @@ class ChangelogController(BaseController
 
    
 
    @LoginRequired()
 
    def __before__(self):
 
        super(ChangelogController, self).__before__()
 
                
 
    def index(self):
 
        if request.params.get('size'):
 
            limit = 100
 
            default = 20
 
        if request.params.get('size'):
 
            try:
 
                int_size = int(request.params.get('size'))
 
            except ValueError:
 
                int_size = default
 
            int_size = int_size if int_size <= limit else limit 
 
            c.size = int_size
0 comments (0 inline, 0 general)