From 6750307a4629880f05d1d17b370d3a7b317dc70f Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 9 Sep 2005 09:37:44 +0000 Subject: [PATCH] injected __repr__ into color --- python/mapnik/__init__.py.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/mapnik/__init__.py.in b/python/mapnik/__init__.py.in index 4868c5329..5229d7afb 100644 --- a/python/mapnik/__init__.py.in +++ b/python/mapnik/__init__.py.in @@ -47,7 +47,11 @@ class _envelope(envelope,_injector): return 'envelope(%s,%s,%s,%s)' % \ (self.minx,self.miny,self.maxx,self.maxy) - +class _color(color,_injector): + def __repr__(self): + return 'color(%s,%s,%s,%s)' % \ + (self.r,self.g,self.b,self.a) + #register datasources from mapnik import datasource_cache datasource_cache.instance().register_datasources("${PREFIX}/datasources")