devtools/devctl.py
branchstable
changeset 3689 deb13e88e037
parent 3638 648d6dbec630
child 3720 5376aaadd16b
child 3858 ba96e4607e67
equal deleted inserted replaced
3688:421fb447ecb2 3689:deb13e88e037
   142     for eschema in sorted(schema.entities()):
   142     for eschema in sorted(schema.entities()):
   143         etype = eschema.type
   143         etype = eschema.type
   144         if etype not in libschema:
   144         if etype not in libschema:
   145             add_msg(w, etype)
   145             add_msg(w, etype)
   146             add_msg(w, '%s_plural' % etype)
   146             add_msg(w, '%s_plural' % etype)
   147             if not eschema.is_final():
   147             if not eschema.final:
   148                 add_msg(w, 'This %s' % etype)
   148                 add_msg(w, 'This %s' % etype)
   149                 add_msg(w, 'New %s' % etype)
   149                 add_msg(w, 'New %s' % etype)
   150             if eschema.description and not eschema.description in done:
   150             if eschema.description and not eschema.description in done:
   151                 done.add(eschema.description)
   151                 done.add(eschema.description)
   152                 add_msg(w, eschema.description)
   152                 add_msg(w, eschema.description)
   153         if eschema.is_final():
   153         if eschema.final:
   154             continue
   154             continue
   155         for rschema, targetschemas, role in eschema.relation_definitions(True):
   155         for rschema, targetschemas, role in eschema.relation_definitions(True):
   156             for tschema in targetschemas:
   156             for tschema in targetschemas:
   157                 if rinlined.etype_get(eschema, rschema, role, tschema) and \
   157                 if rinlined.etype_get(eschema, rschema, role, tschema) and \
   158                        (libconfig is None or not
   158                        (libconfig is None or not
   197         if rschema not in no_context_rtypes:
   197         if rschema not in no_context_rtypes:
   198             libsubjects = librschema and librschema.subjects() or ()
   198             libsubjects = librschema and librschema.subjects() or ()
   199             for subjschema in rschema.subjects():
   199             for subjschema in rschema.subjects():
   200                 if not subjschema in libsubjects:
   200                 if not subjschema in libsubjects:
   201                     add_msg(w, rtype, subjschema.type)
   201                     add_msg(w, rtype, subjschema.type)
   202         if not (schema.rschema(rtype).is_final() or rschema.symetric):
   202         if not (schema.rschema(rtype).final or rschema.symetric):
   203             if rschema not in no_context_rtypes:
   203             if rschema not in no_context_rtypes:
   204                 libobjects = librschema and librschema.objects() or ()
   204                 libobjects = librschema and librschema.objects() or ()
   205                 for objschema in rschema.objects():
   205                 for objschema in rschema.objects():
   206                     if not objschema in libobjects:
   206                     if not objschema in libobjects:
   207                         add_msg(w, '%s_object' % rtype, objschema.type)
   207                         add_msg(w, '%s_object' % rtype, objschema.type)