plone / bobtemplates.plone

Python Code Templates for Plone Projects with mr.bob
https://pypi.org/project/bobtemplates.plone/
GNU General Public License v2.0
24 stars 31 forks source link

When creating a content-type of a Plone 4 package, behavior names comes as short names instead of using the full interface name #391

Open idgserpro opened 5 years ago

idgserpro commented 5 years ago

The problem is that the commit that gave the short names for behaviors in

https://github.com/plone/plone.app.dexterity/commit/3ce7790965a054f9a3bada1628dd82ca2f724359#diff-c8b45814ea37ca1b5066572d772726cc

comes in plone.app.dexterity 2.2.0, but Plone 4.3-latest, right now, uses 2.0.19. So the added behaviors to a Type.xml in the profile are not activated. I need to check https://docs.plone.org/external/plone.app.dexterity/docs/reference/standard-behaviours.html and replace all short names with it's full interface.

idgserpro commented 5 years ago

Also, you add a behavior named plone.versionable:

https://github.com/plone/bobtemplates.plone/blob/8d1ca04c099cc4ac1c67e98f3b82a728aa96262a/bobtemplates/plone/content_type/profiles/default/types/%2Bdexterity_type_fti_file_name%2B.xml.bob#L93

But right now, in github search, there's no reference to such behavior.

https://github.com/search?l=XML&q=org%3Aplone+versionable&type=Code

https://github.com/search?l=XML&q=org%3Acollective+versionable&type=Code

Didn't you mean plone.versioning behavior from https://github.com/plone/plone.app.versioningbehavior/blob/58a8253077ae3b760d35639618440b1b4dcc0e8f/plone/app/versioningbehavior/configure.zcml#L18?