devtools/devctl.py
branchstable
changeset 9203 c7ba8e5d2e45
parent 9201 b0f6e8c14e7f
child 9231 d2edd8ac5f33
equal deleted inserted replaced
9202:83f73a9746f6 9203:c7ba8e5d2e45
   152         # processing cubicweb itself
   152         # processing cubicweb itself
   153         libschema = {}
   153         libschema = {}
   154         for cstrtype in CONSTRAINTS:
   154         for cstrtype in CONSTRAINTS:
   155             add_msg(w, cstrtype)
   155             add_msg(w, cstrtype)
   156 
   156 
   157         isinlib = lambda: False
   157         is_in_lib = lambda: False
   158     done = set()
   158     done = set()
   159     for eschema in sorted(schema.entities()):
   159     for eschema in sorted(schema.entities()):
   160         if eschema.type in libschema:
   160         if eschema.type in libschema:
   161             done.add(eschema.description)
   161             done.add(eschema.description)
   162     for eschema in sorted(schema.entities()):
   162     for eschema in sorted(schema.entities()):
   174             continue
   174             continue
   175         for rschema, targetschemas, role in eschema.relation_definitions(True):
   175         for rschema, targetschemas, role in eschema.relation_definitions(True):
   176             if rschema.final:
   176             if rschema.final:
   177                 continue
   177                 continue
   178             for tschema in targetschemas:
   178             for tschema in targetschemas:
   179 
       
   180                 def isinlib(eschema, rschema, role, tschema):
       
   181                     if libconfig is not None:
       
   182                         for libafs in libafss:
       
   183                             if 'main_inlined' in libafs.etype_get(
       
   184                                 eschema, rschema, role, tschema):
       
   185                                 return True
       
   186                     return False
       
   187 
   179 
   188                 for afs in afss:
   180                 for afs in afss:
   189                     fsections = afs.etype_get(eschema, rschema, role, tschema)
   181                     fsections = afs.etype_get(eschema, rschema, role, tschema)
   190                     if 'main_inlined' in fsections and not \
   182                     if 'main_inlined' in fsections and not \
   191                             is_in_lib(libafss, eschema, rschema, role, tschema,
   183                             is_in_lib(libafss, eschema, rschema, role, tschema,