User login

note

Multistakeholder and Platform Cooperatives resources

A core concept of Platform Cooperatives [ http://platformcoop.net/ ] isn't new— the idea that a cooperative enterprise maybe should not be entirely owned and controlled by only workers or only consumers. This kind of cooperative has been called hybrid, solidarity, or multi-stakeholder:

http://www.co-oplaw.org/2014/09/multi-stakeholder-cooperatives/

Using composer require to get an alpha, beta, or release candidate of a Drupal 8 module

The composer require command can help you get your requirements into composer.json more easily. However, that ease is more theoretical than actual for modules without a full stable release.

The Honeypot module has a full stable release version, so any of these will work:

composer require drupal/honeypot:8.*
composer require drupal/honeypot:8.x
composer require drupal/honeypot:8
composer require drupal/honeypot

Drush update not seeing the patch-level version of Drupal 8?

Does it appear that Drush update is not fetching the newest minor version update of Drupal 8? Changelog says 8.0.0 at the top, but you know 8.0.2 has been released, and drush up or drush upc says update information last refreshed that day yet says "No code updates available."?

Spotting and fixing problems caused by referencing the same object in memory

Here's a slightly simplified version of the code causing the problem— very slightly simplified; it really was about this short:

Figuring out what Django permission names are and what permissions a user has

You can see the permissions a particular user has, in the 'machine-readable' form Django uses, quite easily through the Django shell. For a user with the username 'david', for example:

Setting breadcrumbs to exactly what you want

In Drupal it is quite easy to set breadcrumbs with the function drupal_set_breadcrumb(), which takes an array of links (as you would make with the l() function). It's a bit of a blunt instrument but it works (and wins out over hook_menu_breadcrumb_alter()).

Drupal in a virtual machine cheat sheet

This cheatsheet presumes you're already set up with VirtualBox and Vagrant, configured for Drupal. (Agaric has our own base box to have a head start on setting up for this purpose, but some of the magic is in the Vagrantfile stored with our projects.)

In a terminal, go to the directory holding your Vagrantfile and your project code. Then the fun begins.

vagrant up

to start the virtual machine.

Passing a group object deprecated, pass through the arguments array instead

You've upgraded migrate module from 7.x-2.5-rc2 or such to 7.x-2.6. Your migrations may run, or not run, with this complaining error: "Passing a group object to a migration constructor is now deprecated pass through the arguments array passed to the leaf class instead."

Replace this:

Adding new repositories without getting everything from those repositories

in

Wanted to be able to install selected things from Trisquel, such as IceCat, without changing everything over to Trisquel (yet).

To get access to Trisquel packages, add them to your sources list, add their keyring, and update:

https://trisquel.info/en/wiki/packages-repository

vi /etc/apt/sources.list

sudo apt-get install trisquel-keyring

Getting started using GnuCash for a Worker Cooperative

A lot of this will apply for any small business (and won't apply to huge worker cooperatives, although technically our three-member collective is a multinational).

Syndicate content