[ui] Add an action to download generated HTML documentation for a profile
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Jul 2016 09:00:51 +0200
changeset 1470 f4f09e845928
parent 1469 d319cf36ad49
child 1471 573248320056
[ui] Add an action to download generated HTML documentation for a profile Closes #11447493
i18n/en.po
i18n/fr.po
views/export.py
--- a/i18n/en.po	Thu Jul 21 08:52:07 2016 +0200
+++ b/i18n/en.po	Thu Jul 21 09:00:51 2016 +0200
@@ -100,6 +100,9 @@
 "necessarily the identifier that will appear in the final sheet."
 msgstr ""
 
+msgid "HTML documentation"
+msgstr ""
+
 msgid "New Agent"
 msgstr ""
 
--- a/i18n/fr.po	Thu Jul 21 08:52:07 2016 +0200
+++ b/i18n/fr.po	Thu Jul 21 09:00:51 2016 +0200
@@ -103,6 +103,9 @@
 "profil - ce n'est pas nécessairement l'identifiant qui sera utilisé dans les "
 "bordereaux de transfert"
 
+msgid "HTML documentation"
+msgstr "documentation HTML"
+
 msgid "New Agent"
 msgstr ""
 
--- a/views/export.py	Thu Jul 21 08:52:07 2016 +0200
+++ b/views/export.py	Thu Jul 21 09:00:51 2016 +0200
@@ -31,6 +31,7 @@
 
     title = _('SEDA 2.0 RNG export')
     export_format = 'rng'
+    order = 100
 
     def url(self):
         entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
@@ -41,6 +42,14 @@
     __regid__ = 'seda.seda2export.xsd'
     title = _('SEDA 2.0 XSD export')
     export_format = 'xsd'
+    order = 101
+
+
+class SEDA2DownloadHTMLAction(SEDA2DownloadRNGAction):
+    __regid__ = 'seda.seda2export.html'
+    title = _('HTML documentation')
+    export_format = 'html'
+    order = 110
 
 
 class SEDA2DownloadView(idownloadable.DownloadView):