~replaceafill/schooltool/ark_reports

« back to all changes in this revision

Viewing changes to src/schooltool/report/browser/report.py

  • Committer: Douglas Cerna
  • Date: 2014-06-15 21:49:18 UTC
  • Revision ID: douglascerna@yahoo.com-20140615214918-i5zzhfqq1fuh45ov
Sync'ed teacher states with new teacher score system
Added viewlet extra parameter to reports links manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
                                      context=self.request)
201
201
                description = translate(viewlet.description,
202
202
                                        context=self.request)
203
 
                querystring = urlencode({
204
 
                        'file_type': file_type.encode('utf-8').upper(),
205
 
                        'description': description.encode('utf-8')})
 
203
                params = {
 
204
                    'file_type': file_type.encode('utf-8').upper(),
 
205
                    'description': description.encode('utf-8'),
 
206
                }
 
207
                viewlet_params = getattr(viewlet, 'extra_params', {})
 
208
                params.update(viewlet_params)
 
209
                querystring = urlencode(params)
206
210
                url = '%s?%s' % (viewlet.report_link, querystring)
207
211
            result.append({
208
212
                    'class': item['class'],