Commit d8069d95 authored by's avatar
Browse files

more i18nupdate fixes

branch : tls-sprint
parent a2c550e464ad
......@@ -91,11 +91,10 @@ def generate_schema_pot(w, cubedir=None):
if cubedir:
config = DevCubeConfiguration(cube)
schema = config.load_schema()
config = libconfig
schema = config.load_schema()
libconfig = None
schema = config.load_schema(remove_unused_rtypes=False)
vreg = CubicWebRegistry(config)
# set_schema triggers objects registrations
......@@ -110,7 +109,7 @@ def _generate_schema_pot(w, vreg, schema, libconfig=None, cube=None):
w('# singular and plural forms for each entity type\n')
if libconfig is not None:
libschema = libconfig.load_schema()
libschema = libconfig.load_schema(remove_unused_rtypes=False)
entities = [e for e in schema.entities() if not e in libschema]
entities = schema.entities()
......@@ -154,13 +153,15 @@ def _generate_schema_pot(w, vreg, schema, libconfig=None, cube=None):
for rschema in rschemas:
if rschema.is_final():
if libconfig is not None:
librschema = libschema.get(rschema)
for teschema in rschema.targets(eschema, role):
if libconfig is not None:
if libconfig is not None and librschema is not None:
if role == 'subject':
subjtype, objtype = eschema, teschema
subjtype, objtype = teschema, eschema
if rschema.has_rdef(subjtype, objtype):
if librschema.has_rdef(subjtype, objtype):
if actionbox.relation_mode(rschema, eschema, teschema, role) == 'create':
if role == 'subject':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment