Example #1
0
 def _build_filters(self):
     catalog = getToolByName(self.context, 'portal_catalog')
     reporter = ServeiDataReporter(catalog)
     servei_filters = [
         self._build_filter_from_url(servei.website_url)
         for servei in reporter.list_by_review_state('published')
         if servei.website_url]
     return ",".join(servei_filters) if servei_filters else "ga:source=~^$"
Example #2
0
 def _build_filters(self):
     catalog = getToolByName(self.context, 'portal_catalog')
     reporter = ServeiDataReporter(catalog)
     servei_filters = [
         self._build_filter_from_url(servei.website_url)
         for servei in reporter.list_by_review_state('published')
         if servei.website_url
     ]
     return ",".join(servei_filters) if servei_filters else "ga:source=~^$"
Example #3
0
 def calculate(self):
     catalog = getToolByName(self.context, 'portal_catalog')
     reporter = ServeiDataReporter(catalog)
     return len(reporter.list_by_review_state('published'))
Example #4
0
 def calculate(self):
     catalog = getToolByName(self.context, 'portal_catalog')
     reporter = ServeiDataReporter(catalog)
     return len(reporter.list_by_review_state('published'))