Fixed error in GastausboxDictConverter.to_python when the state already had an inn.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 23 May 2015 21:12:25 +0000 (21:12 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 23 May 2015 21:12:25 +0000 (21:12 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2264 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwmarkup.py

index 0e299fab7f5d5cc71b780c6f661498aa52cceecf..4f808b6fb8644237f662bb6083cffad00a6b94b5 100644 (file)
@@ -150,7 +150,7 @@ class GasthausboxDictConverter(formencode.Validator):
         """value is a dict of properties. If state is an object with the attribute inn, this inn class will be populated or updated."""
         props = value
         if isinstance(state, object) and hasattr(state, 'inn'):
-            sledrun = state.sledrun
+            inn = state.inn
         else:
             class Inn(object):
                 pass