Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
keywords=None, comment_tags=None, **options):
options['template_class'] = template_class
content = BytesIO(content)
if keywords is None:
keywords = []
if comment_tags is None:
comment_tags = []
for _, _, string, _ in genshi_extract(
content, keywords, comment_tags, options):
if string:
yield string
if not template_class:
raise ValueError('a template class is required')
return method
factories = MIMETemplateLoader().factories
extract_report_txt = extract_report_genshi(factories['text'])
extract_report_xml = extract_report_genshi(
factories.get('markup', factories.get('xml')))
extract_report_html = extract_report_genshi(
factories.get('markup', factories.get('xml')))
extract_report_xhtml = extract_report_genshi(
factories.get('markup', factories.get('xml')))
del factories
def set_report(self):
pool = Pool()
Report = pool.get('ir.action.report')
Translation = pool.get('ir.translation')
if self.model == Report:
reports = self.records