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

This commit is contained in:
Dane Springmeyer 2009-05-20 00:26:44 +00:00
parent 6825541057
commit 80a5bdf6e3

View file

@ -40,16 +40,6 @@ using mapnik::point_datasource;
using mapnik::layer_descriptor; using mapnik::layer_descriptor;
using mapnik::attribute_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 namespace
{ {
//user-friendly wrapper that uses Python dictionary //user-friendly wrapper that uses Python dictionary
@ -149,7 +139,6 @@ void export_datasource()
class_<datasource,boost::shared_ptr<datasource>, class_<datasource,boost::shared_ptr<datasource>,
boost::noncopyable>("Datasource",no_init) boost::noncopyable>("Datasource",no_init)
.def_pickle(ds_pickle_suite())
.def("envelope",&datasource::envelope) .def("envelope",&datasource::envelope)
.def("descriptor",&datasource::get_descriptor) //todo .def("descriptor",&datasource::get_descriptor) //todo
.def("features",&datasource::features) .def("features",&datasource::features)