mapnik/mapnik — pull request #1331 by rjw57 (2012-07-19 18:41:24+00:00)
Title: python bindings: export Query.resolution property as a tuple

Although the mapnik::query class is exposed to the Python bindings, the resolution attribute is a raw boost::tuple. If you attempt to access this tuple from Python, boost complains strongly.

This patch adds the required magic to marshal the raw boost::tuple which is query::resolution_type into an honest-to-goodness Python tuple.

**Question:** is this the right approach? The resolution type is a boost::tuple but adding a generic mapping from boost::tuple <-> Python appears [non-tivial](http://thread.gmane.org/gmane.comp.python.c++/9110/focus=9112).