Skip to content

Commit 3e31db1

Browse files
committed
Deactivated download-file view
1 parent bdd3b1e commit 3e31db1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/imio/esign/browser/configure.zcml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@
9999
i18n:domain="imio.esign"
100100
/>
101101

102-
<browser:page
102+
<!--browser:page
103103
name="download-file"
104104
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
105105
class=".views.DownloadFileView"
106106
permission="zope2.View"
107107
i18n:domain="imio.esign"
108-
/>
108+
/-->
109109

110110
</configure>

src/imio/esign/browser/views.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ def available(self):
208208
"""Global availability of the viewlet."""
209209
return True
210210

211-
def get_table_rows(self, key):
211+
def get_table_rows(self, column):
212212
"""Get the table rows following the column"""
213213
return {1: ["session_id", "state", "update_date", "sealed"],
214-
2: ["external_link", "signers"]}.get(key, [])
214+
2: ["external_link", "signers"]}.get(column, [])
215215

216216
def render(self):
217217
"""Render the viewlet."""
@@ -240,7 +240,9 @@ def ext_session_link(self, session):
240240

241241
@implementer(IPublishTraverse)
242242
class DownloadFileView(BrowserView):
243-
"""View to download a file based on an identifier passed in the URL path."""
243+
"""View to download a file based on an identifier passed in the URL path.
244+
245+
Finally not used !"""
244246

245247
shortuid_separator = "-"
246248
named_blob_file_attribute = "file"

0 commit comments

Comments
 (0)