dgu-vagrant-puppet | Container environment for booting fresh DGU | Continuous Deployment library
kandi X-RAY | dgu-vagrant-puppet Summary
kandi X-RAY | dgu-vagrant-puppet Summary
Here is an overview of the install process:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dgu-vagrant-puppet
dgu-vagrant-puppet Key Features
dgu-vagrant-puppet Examples and Code Snippets
Community Discussions
Trending Discussions on dgu-vagrant-puppet
QUESTION
I'm using dgu-vagrant-puppet and inside the system, when I log in and changed my email, things aren't in sync and probably I need to execute something to sync Drupal and CKAN.
Inside my file
...ANSWER
Answered 2017-Mar-17 at 16:54Yeah there is a bit of lag between the email being changed in Drupal and it being synced to CKAN. It is done when the user clicks on a CKAN page and the Drupal cookie/session is refreshed. This cookie refresh is after a login or when Drupal has refreshed the user session cookie, which if memory serves right is every 30 minutes.
The code that writes the change to CKAN is here:
If you wanted, you could write a script to sync all users in one go, based on that code, calling DrupalClient to get the user details and writing them to the CKAN user.
QUESTION
I'm having a little specific task. I need to have a simple textarea for comments under a dataset. I'm using data.gov.uk package (https://github.com/datagovuk/dgu-vagrant-puppet).
Comment inside textarea should be private and should be sent to administrator's email (configurable from Drupal).
What would you say is the easiest way to implement something like this?
...ANSWER
Answered 2017-Jan-31 at 14:20I'm not sure if this is the 'easiest way' but in short you would:
- add a form to
templates/package/read.html
with a to be created action (for exampleaction="/dataset/{{ pkg.id }}/comment"
). You might add a condition based on user.id or something. - create a controller method for this action that get's the comment from request and sends the email
add a route map to your plugin that connects the form's action URL with the controller method, for example:
map.connect('/dataset/{id}/comment', controller="ckanext-.controller:YourPluginControllerClass", action="send_comment",)
I've done something similiar, and also added a modal box (based on bootstrap in that case) so that the form would appear as popup after clicking a link.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dgu-vagrant-puppet
For Drupal you will need to complete the configuration of the LAMP stack and get a working drush installation, as explained below. For more detailed requirements, please refer to https://drupal.org/requirements .
For more details about installation of Drush, see here: https://github.com/drush-ops/drush.
You can install the DGU Drupal Distribution with the following commands:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page