Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tmp commit for sharing

  • Loading branch information...
commit 82dc7b15d254da6c70a164f6d76d463a7b592de0 1 parent eb1af19
@kiorky kiorky authored
Showing with 23 additions and 3 deletions.
  1. +23 −3 src/mapnik/__init__.py
View
26 src/mapnik/__init__.py
@@ -271,6 +271,7 @@ class _Feature(Feature, _injector):
TODO: docs
"""
+ _done = False
@property
def properties(self):
return _DeprecatedFeatureProperties(self)
@@ -282,7 +283,17 @@ def attributes(self):
return dict(self)
def __init__(self, id, wkt=None, **properties):
- Feature._c___init__(self, id)
+ try:
+ Feature._c___init__(self, id)
+ except RuntimeError, e:
+ # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ # keep on bindings upgrade
+ # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ if 'recursion' in e.message:
+ pass
+ else:
+ raise
+
if wkt is not None:
self.add_geometries_from_wkt(wkt)
for k, v in properties.iteritems():
@@ -295,8 +306,17 @@ def __repr__(self):
class _Symbolizers(Symbolizers,_injector):
def __getitem__(self, idx):
- sym = Symbolizers._c___getitem__(self, idx)
- return sym.symbol()
+ try:
+ sym = Symbolizers._c___getitem__(self, idx)
+ return sym.symbol()
+ except RuntimeError, e:
+ # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ # keep on bindings upgrade
+ # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ if 'recursion' in e.message:
+ pass
+ else:
+ raise
def _add_symbol_method_to_symbolizers(vars=globals()):

1 comment on commit 82dc7b1

@kiorky
Collaborator

This workaround is just a test, it was to test escaping the exeption.

But my final conclusion is that anyway it just indicate i have a problem in my local mapnik installation.

I'm on my way to setup a new cleanup test sandbox.

Please sign in to comment.
Something went wrong with that request. Please try again.