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 fsections = afs.etype_get(eschema, rschema, role, tschema) |
157 fsections = afs.etype_get(eschema, rschema, role, tschema) |
158 if 'inlined_attributes' in fsections and \ |
158 if 'inlined_attributes' in fsections and \ |
199 if rschema not in no_context_rtypes: |
199 if rschema not in no_context_rtypes: |
200 libsubjects = librschema and librschema.subjects() or () |
200 libsubjects = librschema and librschema.subjects() or () |
201 for subjschema in rschema.subjects(): |
201 for subjschema in rschema.subjects(): |
202 if not subjschema in libsubjects: |
202 if not subjschema in libsubjects: |
203 add_msg(w, rtype, subjschema.type) |
203 add_msg(w, rtype, subjschema.type) |
204 if not (schema.rschema(rtype).is_final() or rschema.symetric): |
204 if not (schema.rschema(rtype).final or rschema.symetric): |
205 if rschema not in no_context_rtypes: |
205 if rschema not in no_context_rtypes: |
206 libobjects = librschema and librschema.objects() or () |
206 libobjects = librschema and librschema.objects() or () |
207 for objschema in rschema.objects(): |
207 for objschema in rschema.objects(): |
208 if not objschema in libobjects: |
208 if not objschema in libobjects: |
209 add_msg(w, '%s_object' % rtype, objschema.type) |
209 add_msg(w, '%s_object' % rtype, objschema.type) |