hooks/syncschema.py
changeset 7562 cdef82ca9eab
parent 7514 32081892850e
parent 7551 2d4ba5b984dc
child 7815 2a164a9cf81c
equal deleted inserted replaced
7554:fdace9d67d96 7562:cdef82ca9eab
   264         gmap = group_mapping(session)
   264         gmap = group_mapping(session)
   265         cmap = ss.cstrtype_mapping(session)
   265         cmap = ss.cstrtype_mapping(session)
   266         for rtype in (META_RTYPES - VIRTUAL_RTYPES):
   266         for rtype in (META_RTYPES - VIRTUAL_RTYPES):
   267             try:
   267             try:
   268                 rschema = schema[rtype]
   268                 rschema = schema[rtype]
   269             except:
   269             except KeyError:
   270                 if rtype == 'cw_source':
   270                 if rtype == 'cw_source':
   271                     continue # XXX 3.10 migration
   271                     continue # XXX 3.10 migration
   272                 raise
   272                 raise
   273             sampletype = rschema.subjects()[0]
   273             sampletype = rschema.subjects()[0]
   274             desttype = rschema.objects()[0]
   274             desttype = rschema.objects()[0]