We are using PloneFormGen's SaveDataAdapter, and would like users who are not site admins to be able to download the CSV. The normal permissions don't seem to allow this. Is this possible in PloneFormGen?
Allowing normal users to download PloneFormGen CSV
82 Views Asked by joeforker At
1
There are 1 best solutions below
Related Questions in CSV
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Writing Waveform data into CSV file in LabVIEW
- VBA Code to filter and get values from csv to excel worksheet
- how to read data with two headers
- How can I use CsvHelper to parse a string into a list of tokens?
- How does Big Query differentiate between a day and month when we upload any CSV or text file?
- How to write a string in Stringrid with DelimitedText in FMX Delphi 11
- Databricks can't find a csv file inside a wheel I installed when running from a Databricks Notebook
- Import CSV file from React front end to Django/Python backend proving unreliable
- Need to read different line from different files using CSV read function in JMeter
- Trouble understanding how to use list of String data in a Machine Learning dataset - Features expanded before making prediction
- How to load very big timeseries file(s) in Python to do analysis?
- C++ Unzip and parse csv using zip.h
- How to print all columns from a csv file
- How to read the latest line from the csv file using ReadLineAsync method?
Related Questions in PLONE
- Remove all jobs from plone.app.async queue
- How to add view access to members in plone
- Plone Error After Migration: KeyError('language',)
- Exporting data from a .fs file. Plone 3.3.5
- How do I create a plone and volto project
- Manually start plone 6 instance inside docker container
- Plone 6 Volto generate app - Cannot find module 'is-ci'
- Pressing Enter key on input field does not work as expected
- Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
- Python Could not import class
- Finding all views/namespace urls in a Zope3 system?
- Is it possible to add a if condition inside tal:define?
- Buildout - Allow hosts for package download
- Modify or clean form input in zope or plone
- Rename Dexterity object (id) after copy
Related Questions in PLONEFORMGEN
- How do you determine what attributes and methods are available in PloneFormGen
- Plone FormGen Override Subject Line
- Allowing normal users to download PloneFormGen CSV
- UnicodeDecodeError in PloneFormGen after Plone Security patch 20161129
- how to display image uploaded in a submitted form with ploneformgen?
- Error on PloneFormGen 1.7.17
- Key error on plone customscriptadapter [ploneformgen]
- Plone:RedHat Linux Server Plone site client getting stop automatically
- How to create a PloneFormGen validator for file types?
- Returning ploneformgen errors back to restricted users
- How do I redirect PloneFormGen to a page depending on the value in a select variable?
- How do I concatenate 2 Ploneformgen form variables to use in CC Recipient of a Mailer adapter
- Is there any way to attach the current data (as a .csv file) in PloneFormGen to a mailer?
- Removing an active action adapter would result in a KeyError on form submit. Plone 4 PloneFormGen error
- Can the Likert option in PloneFormGen be set to display the questions with the answers when submitted as an email and stored in the data adapter
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You're right, there is a custom permission made for the
download-view named "PloneFormGen: Download Saved Input", andProducts/PloneFormGen/config.pydefines that Managers, Owners and Site-admins get this permission by default.In one of your add-on's profile-folder add a file named
rolemap.xmlto additionally assign roles (the default-roles will remain untouched, as they are assigned via a Python-script, not a GenericSetup-file):Note: This will set the permission globally, meaning you cannot restrict it to locations. For finer control per location, create a role "Downloaders", assign the download-permission to it in
rolemap.xmland make the permission assignable locally via the sharing-tab of an item. For the last step one could give https://pypi.org/project/collective.sharingroles/ a try.An alternative solution for the case that exactly one user needs to get the additional privilege for downloading the content of a save-adapter:
Append
/ownership_formto the URL of the save adapter, choose new owner and save.