plone / plone.app.contenttypes

Dexterity-based content types for Plone
https://pypi.org/project/plone.app.contenttypes
14 stars 48 forks source link

purge="false" is ignored for <property name="behaviors". #532

Closed idgserpro closed 2 years ago

idgserpro commented 5 years ago

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

I wasn't sure if this issue should be here or in plone.behavior, but since the problem resides in a file that's inside profiles/default/types I'm posting it here.

What I did:

1 - Created a new Plone 5.2 package using plonecli. Add a default content_type setting all default behaviors.

2 - Ran plonecli build and bin/instance fg in the new created package.

3 - Installed the new Plone package in plone control panel.

4 - Stopped the instance.

5 - Edited the type xml in the package leaving just one behavior and the purge=false attribute.

6 - In the ZMI, reinstalled the package (I know this practice is deprecated, but it's easier to test the problem in this issue).

What I expect to happen:

Viewing the portal_types for this content type in the ZMI should show all behaviors when I installed the package in the first place.

What actually happened:

It's showing only one behavior, the one that I left on 5 above.

What version of Plone/ Addons I am using:

The first time I saw this problem was in a Plone 4.3.18 installation, but I did the test in the last Plone version, 5.2:

Products.CMFPlone-5.2.0 plone.app.contenttypes-2.1.2 plone.behavior-1.3.0

AccessControl-4.0-py2.7-linux-x86_64.egg',
Acquisition-4.6-py2.7-linux-x86_64.egg',
archetypes.schemaextender-3.0.0-py2.7.egg',
attrs-19.1.0-py2.7.egg',
AuthEncoding-4.1-py2.7.egg',
Babel-2.7.0-py2.7.egg',
backports.functools_lru_cache-1.5-py2.7.egg',
beautifulsoup4-4.7.1-py2.7.egg',
borg.localrole-3.1.6-py2.7.egg',
BTrees-4.5.1-py2.7-linux-x86_64.egg',
calmjs.parse-1.1.3-py2.7.egg',
certifi-2019.6.16-py2.7.egg',
cffi-1.12.3-py2.7-linux-x86_64.egg',
Chameleon-3.6.2-py2.7.egg',
chardet-3.0.4-py2.7.egg',
collective.monkeypatcher-1.2-py2.7.egg',
cssselect-1.0.3-py2.7.egg',
DateTime-4.3-py2.7.egg',
decorator-4.4.0-py2.7.egg',
diazo-1.3.0-py2.7.egg',
DocumentTemplate-3.1b2-py2.7.egg',
docutils-0.14-py2.7.egg',
enum34-1.1.6-py2.7.egg',
ExtensionClass-4.4-py2.7-linux-x86_64.egg',
feedparser-5.2.1-py2.7.egg',
five.customerize-2.0.0-py2.7.egg',
five.globalrequest-99.1-py2.7.egg',
five.intid-1.2.3-py2.7.egg',
five.localsitemanager-3.2.2-py2.7.egg',
funcsigs-1.0.2-py2.7.egg',
functools32-3.2.3.post2-py2.7.egg',
future-0.17.1-py2.7.egg',
futures-3.2.0-py2.7.egg',
icalendar-4.0.3-py2.7.egg',
idna-2.8-py2.7.egg',
ipaddress-1.0.22-py2.7.egg',
jsonschema-3.0.1-py2.7.egg',
lxml-4.3.4-py2.7-linux-x86_64.egg',
Markdown-3.1.1-py2.7.egg',
Missing-4.1-py2.7.egg',
mockup-3.0.2-py2.7.egg',
MultiMapping-4.1-py2.7.egg',
Paste-3.0.8-py2.7.egg',
PasteDeploy-2.0.1-py2.7.egg',
pathlib-1.0.1-py2.7.egg',
Persistence-3.0-py2.7-linux-x86_64.egg',
persistent-4.5.0-py2.7-linux-x86_64.egg',
piexif-1.1.2-py2.7.egg',
Pillow-6.1.0-py2.7-linux-x86_64.egg',
Plone-5.2.0-py2.7.egg',
plone.alterego-1.1.3-py2.7.egg',
plone.api-1.10.0-py2.7.egg',
plone.app.blob-1.8.0-py2.7.egg',
plone.app.caching-2.0.2-py2.7.egg',
plone.app.collection-1.2.7-py2.7.egg',
plone.app.content-3.7.0-py2.7.egg',
plone.app.contentlisting-2.0.0-py2.7.egg',
plone.app.contentmenu-2.3.0-py2.7.egg',
plone.app.contentrules-4.1.1-py2.7.egg',
plone.app.contenttypes-2.1.2-py2.7.egg',
plone.app.customerize-1.3.10-py2.7.egg',
plone.app.dexterity-2.6.3-py2.7.egg',
plone.app.discussion-3.2.1-py2.7.egg',
plone.app.event-3.2.4-py2.7.egg',
plone.app.folder-1.3.0-py2.7.egg',
plone.app.i18n-3.0.5-py2.7.egg',
plone.app.imaging-2.1.0-py2.7.egg',
plone.app.intid-1.1.3-py2.7.egg',
plone.app.iterate-3.3.12-py2.7.egg',
plone.app.layout-3.2.1-py2.7.egg',
plone.app.linkintegrity-3.3.11-py2.7.egg',
plone.app.locales-5.1.18-py2.7.egg',
plone.app.lockingbehavior-1.0.6-py2.7.egg',
plone.app.multilingual-5.3.5-py2.7.egg',
plone.app.portlets-4.4.2-py2.7.egg',
plone.app.querystring-1.4.11-py2.7.egg',
plone.app.redirector-2.1.0-py2.7.egg',
plone.app.referenceablebehavior-0.7.7-py2.7.egg',
plone.app.registry-1.7.5-py2.7.egg',
plone.app.relationfield-2.0.1-py2.7.egg',
plone.app.robotframework-1.5.2-py2.7.egg',
plone.app.testing-6.1.3-py2.7.egg',
plone.app.textfield-1.3.1-py2.7.egg',
plone.app.theming-4.0.1-py2.7.egg',
plone.app.upgrade-2.0.27-py2.7.egg',
plone.app.users-2.6.0-py2.7.egg',
plone.app.uuid-2.0.0-py2.7.egg',
plone.app.versioningbehavior-1.3.8-py2.7.egg',
plone.app.viewletmanager-3.1.0-py2.7.egg',
plone.app.vocabularies-4.1.0-py2.7.egg',
plone.app.widgets-3.0.2-py2.7.egg',
plone.app.workflow-4.0.1-py2.7.egg',
plone.app.z3cform-3.1.1-py2.7.egg',
plone.autoform-1.8.1-py2.7.egg',
plone.batching-1.1.5-py2.7.egg',
plone.behavior-1.3.0-py2.7.egg',
plone.browserlayer-2.2.2-py2.7.egg',
plone.cachepurging-2.0.1-py2.7.egg',
plone.caching-1.2.1-py2.7.egg',
plone.contentrules-2.0.9-py2.7.egg',
plone.dexterity-2.9.1-py2.7.egg',
plone.event-1.4.0-py2.7.egg',
plone.folder-3.0.0-py2.7.egg',
plone.formwidget.namedfile-2.0.9-py2.7.egg',
plone.formwidget.recurrence-2.1.3-py2.7.egg',
plone.i18n-4.0.5-py2.7.egg',
plone.indexer-1.0.6-py2.7.egg',
plone.intelligenttext-3.0.0-py2.7.egg',
plone.keyring-3.1.1-py2.7.egg',
plone.locking-2.2.3-py2.7.egg',
plone.memoize-2.0.1-py2.7.egg',
plone.namedfile-5.0.4-py2.7.egg',
plone.outputfilters-3.1.2-py2.7.egg',
plone.portlet.collection-3.3.1-py2.7.egg',
plone.portlets-2.3.1-py2.7.egg',
plone.portlet.static-3.1.3-py2.7.egg',
plone.protect-4.1.2-py2.7.egg',
plone.recipe.zope2instance-6.3.0-py2.7.egg',
plone.registry-1.1.5-py2.7.egg',
plone.resource-2.1.1-py2.7.egg',
plone.resourceeditor-3.0.0-py2.7.egg',
plone.rest-1.4.0-py2.7.egg',
plone.restapi-4.3.1-py2.7.egg',
plone.rfc822-2.0.1-py2.7.egg',
plone.scale-3.0.3-py2.7.egg',
plone.schema-1.2.0-py2.7.egg',
plone.schemaeditor-2.0.20-py2.7.egg',
plone.session-3.7.3-py2.7.egg',
plone.staticresources-1.1.0-py2.7.egg',
plone.stringinterp-1.3.1-py2.7.egg',
plone.subrequest-1.9.1-py2.7.egg',
plone.supermodel-1.4.0-py2.7.egg',
plone.synchronize-1.0.3-py2.7.egg',
plone.testing-7.0.1-py2.7.egg',
plone.theme-3.0.6-py2.7.egg',
plonetheme.barceloneta-2.1.4-py2.7.egg',
plone.transformchain-2.0.1-py2.7.egg',
plone.uuid-1.0.5-py2.7.egg',
plone.z3cform-1.1.0-py2.7.egg',
ply-3.11-py2.7.egg',
Products.Archetypes-1.16.1-py2.7.egg',
Products.ATContentTypes-3.0.2-py2.7.egg',
Products.BTreeFolder2-4.2-py2.7.egg',
Products.CMFCore-2.4.0-py2.7.egg',
Products.CMFDiffTool-3.3.0-py2.7.egg',
Products.CMFDynamicViewFTI-6.0.2-py2.7.egg',
Products.CMFEditions-3.3.2-py2.7.egg',
Products.CMFFormController-4.1.0-py2.7.egg',
Products.CMFPlacefulWorkflow-2.0.0-py2.7.egg',
Products.CMFPlone-5.2.0-py2.7.egg',
Products.CMFQuickInstallerTool-4.0.1-py2.7.egg',
Products.CMFUid-3.0.1-py2.7.egg',
Products.contentmigration-2.2.0-py2.7.egg',
Products.DateRecurringIndex-3.0.0-py2.7.egg',
Products.DCWorkflow-2.4.0b3-py2.7.egg',
Products.ExtendedPathIndex-3.4.2-py2.7.egg',
Products.ExternalEditor-3.0-py2.7.egg',
Products.ExternalMethod-4.3-py2.7.egg',
Products.GenericSetup-2.0-py2.7.egg',
Products.MailHost-4.7-py2.7.egg',
Products.MimetypesRegistry-2.1.5-py2.7.egg',
Products.PlonePAS-6.0.2-py2.7.egg',
Products.PluggableAuthService-2.0-py2.7.egg',
Products.PluginRegistry-1.7-py2.7.egg',
Products.PortalTransforms-3.1.7-py2.7.egg',
Products.PythonScripts-4.7-py2.7.egg',
Products.Sessions-4.5-py2.7.egg',
Products.SiteErrorLog-5.3-py2.7.egg',
Products.StandardCacheManagers-4.0.2-py2.7.egg',
Products.statusmessages-5.0.4-py2.7.egg',
Products.TemporaryFolder-5.3-py2.7.egg',
Products.validation-2.1.1-py2.7.egg',
Products.ZCatalog-5.0.1-py2.7.egg',
Products.ZopeVersionControl-1.1.4-py2.7.egg',
Products.ZSQLMethods-3.0.7-py2.7.egg',
prompt_toolkit-1.0.16-py2.7.egg',
pycparser-2.19-py2.7.egg',
Pygments-2.4.2-py2.7.egg',
PyJWT-1.7.1-py2.7.egg',
pyrsistent-0.15.2-py2.7-linux-x86_64.egg',
pyScss-1.3.5-py2.7-linux-x86_64.egg',
python_dateutil-2.8.0-py2.7.egg',
python_gettext-4.0-py2.7.egg',
pytz-2019.1-py2.7.egg',
Record-3.5-py2.7.egg',
repoze.xmliter-0.6-py2.7.egg',
requests-2.22.0-py2.7.egg',
RestrictedPython-4.0-py2.7.egg',
robotframework-3.1.2-py2.7.egg',
robotframework_debuglibrary-1.1.4-py2.7.egg',
robotframework_selenium2library-3.0.0-py2.7.egg',
robotframework_seleniumlibrary-3.3.1-py2.7.egg',
robotsuite-2.0.0-py2.7.egg',
roman-3.2-py2.7.egg',
selenium-3.141.0-py2.7.egg',
simplejson-3.16.0-py2.7-linux-x86_64.egg',
six-1.12.0-py2.7.egg',
soupsieve-1.9.2-py2.7.egg',
tempstorage-5.0-py2.7.egg',
transaction-2.4.0-py2.7.egg',
trollius-2.2-py2.7.egg',
Unidecode-0.04.1-py2.7.egg',
urllib3-1.25.3-py2.7.egg',
waitress-1.3.0-py2.7.egg',
wcwidth-0.1.7-py2.7.egg',
WebOb-1.8.5-py2.7.egg',
WebTest-2.0.33-py2.7.egg',
WSGIProxy2-0.4.6-py2.7.egg',
z3c.autoinclude-0.3.9-py2.7.egg',
z3c.caching-2.1-py2.7.egg',
z3c.form-3.7.0-py2.7.egg',
z3c.formwidget.query-0.17-py2.7.egg',
z3c.jbot-0.8-py2.7.egg',
z3c.objpath-1.2-py2.7.egg',
z3c.pt-3.2.0-py2.7.egg',
z3c.relationfield-0.8.0-py2.7.egg',
z3c.zcmlhook-1.0b1-py2.7.egg',
zc.lockfile-1.4-py2.7.egg',
ZConfig-3.5.0-py2.7.egg',
zc.recipe.egg-2.0.7-py2.7.egg',
zc.relation-1.1.post2-py2.7.egg',
zdaemon-4.3-py2.7.egg',
ZEO-5.2.1-py2.7.egg',
zExceptions-4.1-py2.7.egg',
ZODB3-3.11.0-py2.7.egg',
ZODB-5.5.1-py2.7.egg',
zodbpickle-1.0.4-py2.7-linux-x86_64.egg',
Zope2-4.0-py2.7.egg',
Zope-4.1.1-py2.7.egg',
zope.annotation-4.7.0-py2.7.egg',
zope.app.locales-4.0.1-py2.7.egg',
zope.browser-2.3-py2.7.egg',
zope.browsermenu-4.4-py2.7.egg',
zope.browserpage-4.4.0-py2.7.egg',
zope.browserresource-4.3-py2.7.egg',
zope.cachedescriptors-4.3.1-py2.7.egg',
zope.component-4.5-py2.7.egg',
zope.componentvocabulary-2.2.0-py2.7.egg',
zope.configuration-4.3.1-py2.7.egg',
zope.container-4.2.2-py2.7-linux-x86_64.egg',
zope.contentprovider-4.2.1-py2.7.egg',
zope.contenttype-4.4-py2.7.egg',
zope.copy-4.2-py2.7.egg',
zope.datetime-4.2.0-py2.7.egg',
zope.deferredimport-4.3-py2.7.egg',
zope.deprecation-4.4.0-py2.7.egg',
zope.dottedname-4.3-py2.7.egg',
zope.event-4.4-py2.7.egg',
zope.exceptions-4.3-py2.7.egg',
zope.filerepresentation-4.2.0-py2.7.egg',
zope.globalrequest-1.5-py2.7.egg',
zope.hookable-4.2.0-py2.7-linux-x86_64.egg',
zope.i18n-4.6.2-py2.7.egg',
zope.i18nmessageid-4.3.1-py2.7-linux-x86_64.egg',
zope.interface-4.6.0-py2.7-linux-x86_64.egg',
zope.intid-4.3.0-py2.7.egg',
zope.keyreference-4.2.0-py2.7.egg',
zope.lifecycleevent-4.3-py2.7.egg',
zope.location-4.2-py2.7.egg',
zope.pagetemplate-4.4.1-py2.7.egg',
zope.processlifetime-2.3.0-py2.7.egg',
zope.proxy-4.3.1-py2.7-linux-x86_64.egg',
zope.ptresource-4.2.0-py2.7.egg',
zope.publisher-5.0.1-py2.7.egg',
zope.ramcache-2.3-py2.7.egg',
zope.schema-4.9.3-py2.7.egg',
zope.security-4.3.1-py2.7-linux-x86_64.egg',
zope.sendmail-5.0-py2.7.egg',
zope.sequencesort-4.1.2-py2.7.egg',
zope.site-4.2.2-py2.7.egg',
zope.size-4.3-py2.7.egg',
zope.structuredtext-4.3-py2.7.egg',
zope.tal-4.4-py2.7.egg',
zope.tales-5.0.1-py2.7.egg',
zope.testbrowser-5.3.3-py2.7.egg',
zope.testing-4.7-py2.7.egg',
zope.testrunner-5.0-py2.7.egg',
zope.traversing-4.3.1-py2.7.egg',
zope.viewlet-4.2.1-py2.7.egg',
ZServer-4.0.1-py2.7.egg',
jensens commented 2 years ago

would be more an issue in genericsetup.