blob: 7cc022940eb2b55866e8b07165966796608617ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# -*- coding: UTF-8 -*-
# Copyright 2014 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""ccs2coro filter"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"
from clufter.filter import XMLFilter
def _ccs2coroxml(flt_ctxt, in_obj):
return ('etree', flt_ctxt.proceed_xslt_filter(in_obj))
@XMLFilter.deco('ccs', 'coroxml')
def ccs2flatironxml(flt_ctxt, in_obj):
return _ccs2coroxml(flt_ctxt, in_obj)
@XMLFilter.deco('ccs', 'coroxml')
def ccs2needlexml(flt_ctxt, in_obj):
return _ccs2coroxml(flt_ctxt, in_obj)
|