Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a write on read situation #2

Closed
wants to merge 1 commit into from

Conversation

gforcada
Copy link
Member

The rule assign manager is initialized as soon as you open the rules tab thus making a write on read.

It's hard to properly fix this as plone.contentrules is mostly the engine and the one that adds/removes/changes the rules is plone.app.contentrules...

Ideas welcome. See a follow up pull request that partially fixes the problem on plone.app.contentrules

@jensens
Copy link
Member

jensens commented Oct 21, 2015

I'd add a short comment why its twice inside the block to the code.

@gforcada
Copy link
Member Author

@jensens done and added a changelog entry. Let's test it:

plone 4.3: http://jenkins.plone.org/job/pull-request-4.3/139/
plone 5.0: http://jenkins.plone.org/job/pull-request-5.0/503/

If the context gets its first annotation it need to be marked as
safe to write.

The same goes for the annotations on the object.
@gforcada
Copy link
Member Author

@gforcada
Copy link
Member Author

No worth trying anymore, they need plone.protect > 3.x ...

So, yet another one that needs to go together with plone/buildout.coredev#131

@jensens
Copy link
Member

jensens commented Oct 23, 2015

The version of plone.protect in buildout.coredev (4/5) needs to be increased?

@gforcada
Copy link
Member Author

@jensens for Plone 5 it could be merged, but then we will have to make a branch without these changes for Plone 4 as there plone.protect is still pinned at 2.0.2.

The relevant PR to add plone.protect 3.0.x on Plone 4.3 is plone/buildout.coredev#131

Everything I gathered so far (related to plone.protect 3.0.x on Plone 4.3) is on that pull request, see the +150 errors that jenkins reports...

@jensens
Copy link
Member

jensens commented Oct 23, 2015

buildout.coredev branch 4.3 pins to plone.protect 2.0.2

because of https://plone.org/products/plone-hotfix/releases/20151006 we need to go to 3.0.14 anyway in 4.3.

@esteele or @vangheem may you please comment on this?

@vangheem
Copy link
Member

Looks fine but I'd advise to use a conditional import of safeWrite if it is available. Or, require versions of plone.protect where safeWrite is available in setup.py.

@jensens
Copy link
Member

jensens commented Dec 4, 2015

superseeded by #3

@jensens jensens closed this Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants