dont created columns for fields that are marked as 'joined'
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 28 Sep 2012 19:14:47 +0000 (15:14 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 28 Sep 2012 19:14:47 +0000 (15:14 -0400)
PLC/Storage/AlchemyObject.py

index f96b2f6..33ec0be 100644 (file)
@@ -34,8 +34,8 @@ class AlchemyObj(Record):
         table = Table(self.tablename, metadata)
         for field in self.fields:
             param = self.fields[field]
-            # skip read only param
-            if param.ro:
+            # skip params joined from other table
+            if param.joined:
                 continue
             type = String
             if param.type == int: