[ui] Fix select ambiguity
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Jul 2016 08:50:51 +0200
changeset 1468 b996f5890546
parent 1466 a89ff4412318
child 1469 d319cf36ad49
[ui] Fix select ambiguity we want two distinct actions for XSD and RNG export, hence two different regid.
views/xsd.py
--- a/views/xsd.py	Thu Jul 21 15:38:04 2016 +0200
+++ b/views/xsd.py	Thu Jul 21 08:50:51 2016 +0200
@@ -23,7 +23,7 @@
 
 
 class SEDA2DownloadRNGAction(action.Action):
-    __regid__ = 'seda.seda2export'
+    __regid__ = 'seda.seda2export.rng'
     __select__ = (action.Action.__select__
                   & one_line_rset()
                   & is_instance('SEDAArchiveTransfer'))
@@ -34,10 +34,11 @@
 
     def url(self):
         entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
-        return entity.absolute_url(vid=self.__regid__, format=self.export_format)
+        return entity.absolute_url(vid='seda.seda2export', format=self.export_format)
 
 
 class SEDA2DownloadXSDAction(SEDA2DownloadRNGAction):
+    __regid__ = 'seda.seda2export.xsd'
     title = _('SEDA 2.0 XSD export')
     export_format = 'xsd'