tow/sunburnt — Issue #31: Change the printing of schema objects
Author: d-fens
Created: 2011-10-13 16:14:09+00:00
State: open

```python
for facet,v in sorted(si.schema.fields.items()):
print facet, v
print type(v)
print isinstance(v, sunburnt.schema.SolrFieldType_int)
```

Type will print `FIELD_NAME ` but

print isinstance(v, sunburnt.schema.SolrFieldType_int)
AttributeError: 'module' object has no attribute 'SolrFieldType_int'

Correct way is `print isinstance(v, sunburnt.schema.SolrIntField)`. So just incase anyone thinks that SolrFieldType_int exists.