From: Tony Mack Date: Fri, 28 Sep 2012 19:14:47 +0000 (-0400) Subject: dont created columns for fields that are marked as 'joined' X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=796bdfd746c77bb1650e9c56ce931a0d5cb9ad5c;p=plcapi.git dont created columns for fields that are marked as 'joined' --- diff --git a/PLC/Storage/AlchemyObject.py b/PLC/Storage/AlchemyObject.py index f96b2f61..33ec0be8 100644 --- a/PLC/Storage/AlchemyObject.py +++ b/PLC/Storage/AlchemyObject.py @@ -34,8 +34,8 @@ class AlchemyObj(Record): table = Table(self.tablename, metadata) for field in self.fields: param = self.fields[field] - # skip read only params - if param.ro: + # skip params joined from other tables + if param.joined: continue type = String if param.type == int: