Objects

API

class ObjectInjector(frontend)

Deals with objects

Arguments
  • frontend (*) –

ObjectInjector.addCreator(c)

Identical to a menu item, it is displayed in a special object creation menu

Arguments
  • c (*) – The creator to add

ObjectInjector.addRoute(r)

Adds a route to objects. It automatically takes /object/:objectid/{r.path}. If the route works only on a specific object type, it is recommended to prefix it with the type, ie: p.path = /timeseries/…

Arguments
  • r (*) –

ObjectInjector.replacePage(t, c)

Replace the page shown for the given object type with a custom component

Arguments
  • t (*) – The object type

  • c (*) – Custom component to use