File diff de9066a4cb97 → 6fb680931627
vendor/registrasion/registrasion/reporting/reports.py
Show inline comments
...
 
@@ -75,12 +75,13 @@ class _ReportTemplateWrapper(object):
 
    def rows(self):
 
        return self.report.rows(self.content_type)
 

	
 
    def count(self):
 
        return self.report.count()
 

	
 

	
 
class BasicReport(Report):
 

	
 
    def __init__(self, title, headings, link_view=None):
 
        super(BasicReport, self).__init__()
 
        self._title = title
 
        self._headings = headings
...
 
@@ -163,12 +164,13 @@ class QuerysetReport(BasicReport):
 
            ]
 

	
 

	
 
    def count(self):
 
        return self._queryset.count()
 

	
 

	
 
class Links(Report):
 

	
 
    def __init__(self, title, links):
 
        '''
 
        Arguments:
 
            links ([tuple, ...]): a list of 2-tuples:
...
 
@@ -190,12 +192,13 @@ class Links(Report):
 
                self._linked_text(content_type, url, link_text)
 
            ]
 

	
 
    def count(self):
 
        return len(self._links)
 

	
 

	
 
def report_view(title, form_type=None):
 
    ''' Decorator that converts a report view function into something that
 
    displays a Report.
 

	
 
    Arguments:
 
        title (str):