Welcome | Get started | Dive into Lino | Contribute | Topics | Reference | More

lino_react.react.views

Views for lino_react.react.

Functions

XML_response(ar, tplname, context)

Respone used for rendering XML views in react.

find(itter, target[, key])

Returns the index of an element in a callable which can be use a key function

http_response(ar, tplname, context)

Deserves a docstring

Classes

ActionParamChoices(**kwargs)

ApiElement(**kwargs)

ApiList(**kwargs)

Authenticate(**kwargs)

ChoiceListModel(**kwargs)

Creates a large JSON model that contains all the choicelists + choices

Choices(**kwargs)

DashboardItem(**kwargs)

DelayedValue(**kwargs)

Index(**kwargs)

Main app entry point, Also builds linoweb file for current user type.

MainHtml(**kwargs)

Null(**kwargs)

Just returns 200, used in an iframe to cause the browser to trigger "Do you want to remember this pw" dialog

Restful(**kwargs)

Used to collaborate with a restful Ext.data.Store.

SWView(**kwargs)

UserSettings(**kwargs)

Ajax interface for getting the current session/user settings.

WBView(**kwargs)

lino_react.react.views.find(itter, target, key=None)

Returns the index of an element in a callable which can be use a key function

class lino_react.react.views.ChoiceListModel(**kwargs)

Bases: View

Creates a large JSON model that contains all the choicelists + choices

Note: This could be improved, or might cause issues due to changing language

class lino_react.react.views.Restful(**kwargs)

Bases: View

Used to collaborate with a restful Ext.data.Store.

TODO: 20240404 I think we can remove this in react as it was used only for Ext.ensible calendar.

get(request, app_label=None, actor=None, pk=None)

Works, but is ugly to get list and detail

lino_react.react.views.http_response(ar, tplname, context)

Deserves a docstring

lino_react.react.views.XML_response(ar, tplname, context)

Respone used for rendering XML views in react. Includes some helper functions for rendering.

class lino_react.react.views.Null(**kwargs)

Bases: View

Just returns 200, used in an iframe to cause the browser to trigger "Do you want to remember this pw" dialog

class lino_react.react.views.Index(**kwargs)

Bases: View

Main app entry point, Also builds linoweb file for current user type. Content is mostly in the react/main.html template.

class lino_react.react.views.UserSettings(**kwargs)

Bases: View

Ajax interface for getting the current session/user settings.