From 80a5bdf6e319301a1b7bc0447506f07568b19c87 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 20 May 2009 00:26:44 +0000 Subject: [PATCH] revert pickling support on datsources since they can't be created directly from python - we now dump and load in the layer object via params as of r1149 - see #345 --- bindings/python/mapnik_datasource.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bindings/python/mapnik_datasource.cpp b/bindings/python/mapnik_datasource.cpp index 45b08cf03..3aff2e499 100644 --- a/bindings/python/mapnik_datasource.cpp +++ b/bindings/python/mapnik_datasource.cpp @@ -40,16 +40,6 @@ using mapnik::point_datasource; using mapnik::layer_descriptor; using mapnik::attribute_descriptor; -struct ds_pickle_suite : boost::python::pickle_suite -{ - static boost::python::tuple - getinitargs(const datasource& ds) - { - mapnik::parameters params = ds.params(); - return boost::python::make_tuple(params); - } -}; - namespace { //user-friendly wrapper that uses Python dictionary @@ -149,7 +139,6 @@ void export_datasource() class_, boost::noncopyable>("Datasource",no_init) - .def_pickle(ds_pickle_suite()) .def("envelope",&datasource::envelope) .def("descriptor",&datasource::get_descriptor) //todo .def("features",&datasource::features)