CLAM Viewers¶
-
class
clam.common.viewers.
AbstractViewer
(**kwargs)¶ -
id
= 'abstractviewer'¶
-
mimetype
= 'text/html'¶
-
name
= 'Unspecified Viewer'¶
-
url
(file)¶ Returns the URL to view this resource, the link is usually an external service/website. If necessary, the file can be ‘pushed’ to the service from here. file is a CLAMOutputFile instance
-
view
(file, **kwargs)¶ Returns the view itself, in xhtml (it’s recommended to use flask’s template system!). file is a CLAMOutputFile instance. By default, if not overriden and a remote service is specified, this issues a GET to the remote service.
-
-
class
clam.common.viewers.
FoLiAViewer
(**kwargs)¶ -
id
= 'foliaviewer'¶
-
name
= 'FoLiA Viewer'¶
-
view
(file, **kwargs)¶
-
-
class
clam.common.viewers.
SimpleTableViewer
(**kwargs)¶ -
id
= 'tableviewer'¶
-
name
= 'Table viewer'¶
-
read
(file)¶
-
view
(file, **kwargs)¶
-