first commit to github

This commit is contained in:
pycook
2015-12-29 10:35:10 +08:00
committed by pycook
parent 755725a1b7
commit a91f409525
55 changed files with 5210 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<responce>
<numfound>{{ numfound }}</numfound>
<page>{{ page }}</page>
<cis>
{% for ci in result %}
<ci type="{{ ci['_type'] }}" id="{{ ci['_id'] }}" type_name="{{ ci['ci_type'] }}" >
{% for k, v in ci.items() %}
{% if not k.startswith('_') %}
{% for item in v | convert_to_list %}
<attribute name="{{ k }}">{{ item }}</attribute>
{% endfor %}
{% endif %}
{% endfor %}
</ci>
{% endfor %}
</cis>
<facets>
{% for k,v in facet.items() %}
<facet attribute="{{ k }}">
{% for item in v %}
<value name="{{ item[0] }}">{{ item[1] }}</value>
{% endfor %}
</facet>
{% endfor %}
</facets>
</responce>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<responce>
<code>{{ code }}</code>
<cis>
{% for k, v in ret.items() %}
<group by="{{ k }}">
{% for ci in v %}
<ci>
{% for item in ci|convert_to_list %}
<attribute name="{{ k }}">{{ item }}</attribute>
{% endfor %}
</ci>
{% endfor %}
</group>
{% endfor %}
</cis>
</responce>