Skip to content

Commit

Permalink
Merge pull request #319 from gotcha/master
Browse files Browse the repository at this point in the history
fix #99 for Archetypes content
  • Loading branch information
gforcada committed Feb 23, 2017
2 parents 8e1e9dc + 9202c49 commit 0278775
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Bug fixes:
user.get_roles or group.get_roles. Fixes #354
[pbauer]

- Fix title wrongly set by ``api.content.create`` when called from GS setup
handler https://github.com/plone/plone.api/issues/99
[gotcha, pgrunewald]

1.6 (2017-02-15)
----------------

Expand Down
2 changes: 1 addition & 1 deletion src/plone/api/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def create(
if IBaseObject.providedBy(content):
# Will finish Archetypes content item creation process,
# rename-after-creation and such
content.processForm()
content.processForm(values=kwargs)

if not id or (safe_id and id):
# Create a new id from title
Expand Down

1 comment on commit 0278775

@jenkins-plone-org
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gforcada Jenkins CI reporting about code analysis
See the full report here: http://jenkins.plone.org/job/package-plone.api/57/violations

src/plone/api/content.py:269:1: C901 'delete' is too complex (15)
src/plone/api/content.py:361:1: C901 '_wf_transitions_for' is too complex (13)
src/plone/api/content.py:426:1: C901 'transition' is too complex (13)

Follow these instructions to reproduce it locally.

Please sign in to comment.