Ignore:
Timestamp:
Jul 9, 2010 3:50:36 PM (14 years ago)
Author:
chervol
Message:

#27: Update blog view to pass any request paramters to the IQGBlogEntryRequest adapter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.blog.star/trunk/quintagroup/blog/star/browser/blog.py

    r2656 r2660  
    2424        year = int(self.request.form.get('year',0)) 
    2525        month = int(self.request.form.get('month',0)) 
    26         subject = list(self.request.form.get('Subject','')) 
     26        # add all request parameters exept year and month 
     27        req = dict(self.request.form) 
     28        for k in ['year', 'month']: 
     29            if req.has_key(k): 
     30                del req['year'] 
    2731        return IQGBlogEntryRetriever(self.context).get_entries( 
    28             year=year, month=month, Subject=subject) 
     32            year=year, month=month, **req) 
    2933 
    3034    def batch(self): 
Note: See TracChangeset for help on using the changeset viewer.