diff options
author | Treeki <treeki@gmail.com> | 2012-08-29 19:40:50 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-29 19:40:50 +0200 |
commit | 7e177703c0380ebf9d6afe9f27df4db24903d6ad (patch) | |
tree | 088c0237035b4cc684150e295a5412badf757aec /src/mapfile.py | |
parent | a0fb27c3f890aec576e09754b2e008459956e1f7 (diff) | |
parent | b7ae37e17b8704a6ba3779625c65d1bb05bec251 (diff) | |
download | koopatlas-7e177703c0380ebf9d6afe9f27df4db24903d6ad.tar.gz koopatlas-7e177703c0380ebf9d6afe9f27df4db24903d6ad.zip |
Merge branch 'master' of tsn:Koopatlas ARGH
Diffstat (limited to '')
-rw-r--r-- | src/mapfile.py | 7 |
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) |