Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lino_react.react.views¶
Views for lino_react.react.
Functions
|
Respone used for rendering XML views in react. |
|
Returns the index of an element in a callable which can be use a key function |
|
Deserves a docstring |
Classes
|
|
|
|
|
|
|
|
|
Creates a large JSON model that contains all the choicelists + choices |
|
|
|
|
|
|
|
Main app entry point, Content is mostly in the |
|
|
|
Just returns 200, used in an iframe to cause the browser to trigger "Do you want to remember this pw" dialog |
|
Used to collaborate with a restful Ext.data.Store. |
|
|
|
Ajax interface for getting the current session/user settings. |
|
- 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