cubicweb/server/schema2sql.py
changeset 11766 d8de1ac21f36
parent 11416 9c2fbb872e91
child 11767 432f87a63057
equal deleted inserted replaced
11765:9cb215e833b0 11766:d8de1ac21f36
   111     attrs = [attrdef for attrdef in eschema.attribute_definitions()
   111     attrs = [attrdef for attrdef in eschema.attribute_definitions()
   112              if not attrdef[0].type in skip_relations]
   112              if not attrdef[0].type in skip_relations]
   113     attrs += [(rschema, None)
   113     attrs += [(rschema, None)
   114               for rschema in eschema.subject_relations()
   114               for rschema in eschema.subject_relations()
   115               if not rschema.final and rschema.inlined]
   115               if not rschema.final and rschema.inlined]
   116     # XXX handle objectinline physical mode
       
   117     for i in range(len(attrs)):
   116     for i in range(len(attrs)):
   118         rschema, attrschema = attrs[i]
   117         rschema, attrschema = attrs[i]
   119         if attrschema is not None:
   118         if attrschema is not None:
   120             sqltype = aschema2sql(dbhelper, eschema, rschema, attrschema)
   119             sqltype = aschema2sql(dbhelper, eschema, rschema, attrschema)
   121         else:  # inline relation
   120         else:  # inline relation