lino.modlib.extjs.views

Summary from <http://en.wikipedia.org/wiki/Restful>:

On an element:

  • GET : Retrieve a representation of the addressed member of the collection expressed in an appropriate MIME type.

  • PUT : Update the addressed member of the collection or create it with the specified ID.

  • POST : Treats the addressed member as a collection and creates a new subordinate of it.

  • DELETE : Delete the addressed member of the collection.

On a list:

  • GET : List the members of the collection.

  • PUT : Replace the entire collection with another collection.

  • POST : Create a new entry in the collection where the ID is assigned automatically by the collection. The ID created is included as part of the data returned by this operation.

  • DELETE : Delete the entire collection.

(This module's source code is available here.)

Functions

delete_element(ar, elem)

elem2rec_empty(ar, ah, elem, **rec)

Returns a dict of this record, designed for usage by an EmptyTable.

test_version_mismatch(request)

Classes

ActionParamChoices(**kwargs)

AdminIndex(**kwargs)

Similar to PlainIndex

ApiElement(**kwargs)

ApiList(**kwargs)

Choices(**kwargs)

EidAppletService(**kwargs)

GridConfig(**kwargs)

HttpResponseDeleted([content])

MainHtml(**kwargs)

Restful(**kwargs)

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

RunJasmine(**kwargs)

unused_Authenticate(**kwargs)

This view is being used when remote_user_header is empty (and user_model not).

lino.modlib.extjs.views.elem2rec_empty(ar, ah, elem, **rec)

Returns a dict of this record, designed for usage by an EmptyTable.

class lino.modlib.extjs.views.AdminIndex(**kwargs)

Bases: django.views.generic.base.View

Similar to PlainIndex

class lino.modlib.extjs.views.unused_Authenticate(**kwargs)

Bases: django.views.generic.base.View

This view is being used when remote_user_header is empty (and user_model not). lino.core.auth.SessionUserMiddleware

class lino.modlib.extjs.views.RunJasmine(**kwargs)

Bases: django.views.generic.base.View

class lino.modlib.extjs.views.EidAppletService(**kwargs)

Bases: django.views.generic.base.View

class lino.modlib.extjs.views.Restful(**kwargs)

Bases: django.views.generic.base.View

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