"""Digital leben workflow."""
from adhocracy_core.workflows import add_workflow
from adhocracy_core.workflows.standard import standard_meta

digital_leben_meta =  standard_meta \
                      .transform(('states', 'participate', 'acm'),
                                 {'principals': [                   'participant', 'moderator', 'creator', 'initiator'],  # noqa
                                'permissions':
                                  [['create_proposal',             None,          None,        None,     'Allow'],  # noqa
                                   ['edit_proposal',               None,          None,       'Allow',   'Allow'],  # noqa
                                   ['create_comment',             'Allow',       'Allow',      None,     'Allow'],  # noqa
                                   ['edit_comment',                None,          None,       'Allow',    None  ],  # noqa
                                   ['create_rate',                'Allow',        None,        None,      None  ],  # noqa
                                   ['edit_rate',                   None,          None,       'Allow',    None  ],  # noqa
                                   ]})


def includeme(config):
    """Add workflow."""
    add_workflow(config.registry, digital_leben_meta, 'digital_leben')

"""Digital leben workflow."""
from adhocracy_core.workflows import add_workflow
from adhocracy_core.workflows.standard import standard_meta

digital_leben_meta = standard_meta \
                     .transform(('states', 'participate', 'acm'),
                                {'principals':                  ['participant', 'moderator', 'creator', 'initiator'],  # noqa
                                 'permissions':
                                 [['create_proposal',             None,          None,        None,     'Allow'],  # noqa
                                  ['edit_proposal',               None,          None,       'Allow',   'Allow'],  # noqa
                                  ['create_comment',             'Allow',       'Allow',      None,     'Allow'],  # noqa
                                  ['edit_comment',                None,          None,       'Allow',    None],  # noqa
                                  ['create_rate',                'Allow',        None,        None,      None],  # noqa
                                  ['edit_rate',                   None,          None,       'Allow',    None],  # noqa
                                 ]})


def includeme(config):
    """Add workflow."""
    add_workflow(config.registry, digital_leben_meta, 'digital_leben')

Make flake8 happy for spd
Make flake8 happy for spd

  """Digital leben workflow."""
  from adhocracy_core.workflows import add_workflow
  from adhocracy_core.workflows.standard import standard_meta
  
- digital_leben_meta =  standard_meta \
+ digital_leben_meta = standard_meta \
-                       .transform(('states', 'participate', 'acm'),
+                      .transform(('states', 'participate', 'acm'),
-                                  {'principals': [                   'participant', 'moderator', 'creator', 'initiator'],  # noqa
+                                 {'principals':                  ['participant', 'moderator', 'creator', 'initiator'],  # noqa
-                                 'permissions':
+                                  'permissions':
-                                   [['create_proposal',             None,          None,        None,     'Allow'],  # noqa
+                                  [['create_proposal',             None,          None,        None,     'Allow'],  # noqa
-                                    ['edit_proposal',               None,          None,       'Allow',   'Allow'],  # noqa
+                                   ['edit_proposal',               None,          None,       'Allow',   'Allow'],  # noqa
-                                    ['create_comment',             'Allow',       'Allow',      None,     'Allow'],  # noqa
+                                   ['create_comment',             'Allow',       'Allow',      None,     'Allow'],  # noqa
-                                    ['edit_comment',                None,          None,       'Allow',    None  ],  # noqa
+                                   ['edit_comment',                None,          None,       'Allow',    None],  # noqa
-                                    ['create_rate',                'Allow',        None,        None,      None  ],  # noqa
+                                   ['create_rate',                'Allow',        None,        None,      None],  # noqa
-                                    ['edit_rate',                   None,          None,       'Allow',    None  ],  # noqa
+                                   ['edit_rate',                   None,          None,       'Allow',    None],  # noqa
-                                    ]})
+                                  ]})
  
  
  def includeme(config):
      """Add workflow."""
      add_workflow(config.registry, digital_leben_meta, 'digital_leben')
  
Make flake8 happy for spd
## Code Before:
"""Digital leben workflow."""
from adhocracy_core.workflows import add_workflow
from adhocracy_core.workflows.standard import standard_meta

digital_leben_meta =  standard_meta \
                      .transform(('states', 'participate', 'acm'),
                                 {'principals': [                   'participant', 'moderator', 'creator', 'initiator'],  # noqa
                                'permissions':
                                  [['create_proposal',             None,          None,        None,     'Allow'],  # noqa
                                   ['edit_proposal',               None,          None,       'Allow',   'Allow'],  # noqa
                                   ['create_comment',             'Allow',       'Allow',      None,     'Allow'],  # noqa
                                   ['edit_comment',                None,          None,       'Allow',    None  ],  # noqa
                                   ['create_rate',                'Allow',        None,        None,      None  ],  # noqa
                                   ['edit_rate',                   None,          None,       'Allow',    None  ],  # noqa
                                   ]})


def includeme(config):
    """Add workflow."""
    add_workflow(config.registry, digital_leben_meta, 'digital_leben')

## Instruction:
Make flake8 happy for spd
## Code After:
"""Digital leben workflow."""
from adhocracy_core.workflows import add_workflow
from adhocracy_core.workflows.standard import standard_meta

digital_leben_meta = standard_meta \
                     .transform(('states', 'participate', 'acm'),
                                {'principals':                  ['participant', 'moderator', 'creator', 'initiator'],  # noqa
                                 'permissions':
                                 [['create_proposal',             None,          None,        None,     'Allow'],  # noqa
                                  ['edit_proposal',               None,          None,       'Allow',   'Allow'],  # noqa
                                  ['create_comment',             'Allow',       'Allow',      None,     'Allow'],  # noqa
                                  ['edit_comment',                None,          None,       'Allow',    None],  # noqa
                                  ['create_rate',                'Allow',        None,        None,      None],  # noqa
                                  ['edit_rate',                   None,          None,       'Allow',    None],  # noqa
                                 ]})


def includeme(config):
    """Add workflow."""
    add_workflow(config.registry, digital_leben_meta, 'digital_leben')
