injected __repr__ into color
This commit is contained in:
parent
23d329a6ff
commit
6750307a46
1 changed files with 5 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue