summaryrefslogtreecommitdiff
path: root/src/mapfile.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-29 19:40:50 +0200
committerTreeki <treeki@gmail.com>2012-08-29 19:40:50 +0200
commit7e177703c0380ebf9d6afe9f27df4db24903d6ad (patch)
tree088c0237035b4cc684150e295a5412badf757aec /src/mapfile.py
parenta0fb27c3f890aec576e09754b2e008459956e1f7 (diff)
parentb7ae37e17b8704a6ba3779625c65d1bb05bec251 (diff)
downloadkoopatlas-7e177703c0380ebf9d6afe9f27df4db24903d6ad.tar.gz
koopatlas-7e177703c0380ebf9d6afe9f27df4db24903d6ad.zip
Merge branch 'master' of tsn:Koopatlas ARGH
Diffstat (limited to '')
-rw-r--r--src/mapfile.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mapfile.py b/src/mapfile.py
index e1494b1..27e2ff9 100644
--- a/src/mapfile.py
+++ b/src/mapfile.py
@@ -66,7 +66,6 @@ def load(string):
try:
clsName = source['_t']
clsObj = DUMPABLE_CLASSES_BY_NAME[clsName]
- print "Loading %s" % clsName
except KeyError:
# let's give this one more shot with the loadable proxies
try:
@@ -82,7 +81,11 @@ def load(string):
try:
setattr(obj, attrName, source[attrName])
except:
- print "{0} was missing the attribute {1}".format(obj, attrName)
+ if attrName == 'folder':
+ obj.folder = ''
+
+ else:
+ print "{0} was missing the attribute {1}".format(obj, attrName)
if hasattr(obj, '_preload'):
obj._preload(source)