Warning

Starting from CubicWeb version 4.0 all code related to generating html views has been moved to the Cube cubicweb_web.

If you want to migrate a project from 3.38 to 4.* while still using all the html views you need to both install the cubicweb_web cube AND add it to your dependencies and run add_cube('web').

cubicweb_web can be installed from pypi this way:

pip install cubicweb_web

We don’t plan to maintain the features in cubicweb_web in the long run; we are moving to a full javascript frontend using both cubicweb_api (which exposes a HTTP API) and @cubicweb/client as a frontend javascript toolkit.

In the long run cubicweb_api will be merged inside of CubicWeb.

The ‘download’ views#

Specific views for entities adapting to IDownloadable#

Components#

class cubicweb_web.views.idownloadable.DownloadBox(*args, **kwargs)[source]#

add download box

Download views#

class cubicweb_web.views.idownloadable.DownloadView(req=None, rset=None, **kwargs)[source]#

download view

this view is replacing the deprecated ‘download’ controller and allow downloading of entities providing the necessary interface

class cubicweb_web.views.idownloadable.DownloadLinkView(req=None, rset=None, **kwargs)[source]#

view displaying a link to download the file

class cubicweb_web.views.idownloadable.IDownloadablePrimaryView(req=None, rset=None, **kwargs)[source]#
class cubicweb_web.views.idownloadable.IDownloadableOneLineView(req=None, rset=None, **kwargs)[source]#

Embedded views#

class cubicweb_web.views.idownloadable.ImageView(req=None, rset=None, **kwargs)[source]#

image embedded view

class cubicweb_web.views.idownloadable.EHTMLView(req=None, rset=None, **kwargs)[source]#

html embedded view