Hello!
Two days ago this works perfectly. Now I have an error:

TypeError: __init__() takes exactly 1 non-keyword argument (2 given)

" items_per_page=int(request.params.get('items_per_page', 10)),"

    def allnews(self):
        c.the_news = Page(
        meta.Session.query(Article).filter_by(atype=0).order_by
(Article.created.desc()).all(),
        page=int(request.params.get('page',1)),
        items_per_page=int(request.params.get('items_per_page', 10)),
        )
        return render('/derived/news/allnews.html')



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to