Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/c/o/collective.googleanalytics-1.4.3/src/collective/googleanalytics/renderer.py   collective.googleanalytics(Download)
from collective.googleanalytics.interfaces.report import IAnalyticsReportRenderer
from collective.googleanalytics.visualization import AnalyticsReportVisualization
from collective.googleanalytics.utils import evaluateTALES, extract_value, \
    unique_list, getDate, getTimeDelta
 
        }
 
        criteria = evaluateTALES(expressions, self._getExpressionContext())
        criteria['ids'] = self.profile_ids()
 
 
        columns_context = self._getExpressionContext(values_context)
        return evaluateTALES(self.report.columns, columns_context)
 
    security.declarePublic('rows')
 
        repeat_context = self._getExpressionContext(values_vars)
        repeat = evaluateTALES(self.report.row_repeat, repeat_context)
 
        rows = []
            row_vars['row'] = row
            row_context = self._getExpressionContext(row_vars)
            rows.append(evaluateTALES(self.report.rows, row_context))
 
        return rows

src/c/o/collective.googleanalytics-1.4.3/src/collective/googleanalytics/tests/test_reports.py   collective.googleanalytics(Download)
from collective.googleanalytics.tests.base import FunctionalTestCase
from collective.googleanalytics.interfaces.report import IAnalyticsReportRenderer
from collective.googleanalytics.utils import evaluateTALES, getDate, getTimeDelta, unique_list
from gdata.analytics import AnalyticsDataFeedFromString
 
 
        exp_context = renderer._getExpressionContext()
        evaluated_exp = evaluateTALES(expression, exp_context)
        self.assertEqual(evaluated_exp, result)