-
Notifications
You must be signed in to change notification settings - Fork 0
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
Exception when import query using Generic Setup #3
Comments
ah you say its from export. So maybe the query can be stored in a string? |
@djay , this XML from ZMI export not working with Generic Setup
If I change it to
The Generic Setup would not throws Exception, but then the rules query is not set |
Was this patch installed at the time? if so the ZMI would be exporting different XML. plone/plone.app.contentrules#51. |
The exported XML after installing new pstach
Use this XML to import, no exception thrown but the query is not correct Export the rule gain
|
@instification in our usecase we can either
If I got rid of query widget then I might use something like this
I will also switch this to a condition and make it that when you choose the rule to act on the selected items, if you choose the current rule, then it will check both conditions and actions so you can use the content rule conditions to further filter the result set (even though this is more inefficient) My suggest above means it will work for decedents and ancestors (more so than the current query widget) but won't work for the following cases
My preference is probably to stick to the querywidget as its the most flexible solution. It's path queries could be made more powerful in the future and the GS for it should be fixed in Plone (plone/plone.supermodel#31) |
Import the contents rules for resource folder using Generic Setup throws exception
Content rules
This content rules is obtained using plone export in ZMI
Log
The text was updated successfully, but these errors were encountered: