Esempio n. 1
0
 def inject_properties():
     return {
         "configuration_properties":
         app.configuration_properties,
         "form_properties":
         form_properties,
         "menu":
         rbac["menu"],
         "names":
         app.property_names,
         "property_types":
         property_types,
         "relations":
         list(set(chain.from_iterable(relationships.values()))),
         "relationships":
         relationships,
         "service_types": {
             service: service_class.pretty_name
             for service, service_class in sorted(models.items())
             if hasattr(service_class, "pretty_name")
         },
         "settings":
         app.settings,
         "themes":
         themes,
         "table_properties":
         app.properties["tables"],
         "user":
         current_user.serialized
         if current_user.is_authenticated else None,
         "version":
         app.version,
         "visualization":
         visualization,
     }
Esempio n. 2
0
 def inject_properties() -> dict:
     return {
         "documentation_url": app.documentation_url,
         "form_properties": form_properties,
         "names": property_names,
         "parameters": app.config,
         "relations":
         list(set(chain.from_iterable(relationships.values()))),
         "version": app.version,
     }
Esempio n. 3
0
 def inject_properties():
     return {
         "property_types": property_types,
         "form_properties": form_properties,
         "table_properties": table_properties,
         "filtering_properties": filtering_properties,
         "names": property_names,
         "config": app.config,
         "relations": list(set(chain.from_iterable(relationships.values()))),
         "relationships": relationships,
         "service_types": {
             service: service_class.pretty_name
             for service, service_class in sorted(models.items())
             if hasattr(service_class, "pretty_name")
         },
         "version": app.version,
     }