Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import json
import os
import shutil
import subprocess
import re
dockerdir = '/var/lib/docker'
volumesdir = os.path.join(dockerdir, 'volumes')
@emagma
emagma / gist:5756084
Created June 11, 2013 11:08
Symfony2admingenerator changed the way you can provide Entity/Model parameters to your custom route
builders:
list:
params:
title: List of elements
display: [a, b, c]
actions:
new: ~
object_actions:
your_custom_action:
route: your_custom_route