Skip to content

Commit

Permalink
Merge branch 'story-10-content-trigger' of https://github.com/collect…
Browse files Browse the repository at this point in the history
…ive/collective.ifttt into story-10-content-trigger
  • Loading branch information
Shriyanshagro committed Jul 1, 2018
2 parents 714e451 + 1c9a8a2 commit ed0dd02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ not_skip = __init__.py
[yapf]
based_on_style = pep8
allow_multiline_lambdas = True
allow_split_before_dict_value = False
coalesce_brackets = True
dedent_closing_brackets = True
join_multiple_lines = False
Expand Down
18 changes: 6 additions & 12 deletions src/collective/ifttt/browser/ifttt_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,12 @@ def add_rule(self, data):
name='plone.ContentRule')
addview.form_instance.update()
content = addview.form_instance.create({
'title':
rule_name,
'description':
rule_description,
'enabled':
True,
'stop':
False,
'cascading':
False,
'event':
IActionSucceededEvent
'title': rule_name,
'description': rule_description,
'enabled': True,
'stop': False,
'cascading': False,
'event': IActionSucceededEvent
}) # noqa
addview.form_instance.add(content)

Expand Down

0 comments on commit ed0dd02

Please sign in to comment.