Skip to content

Commit

Permalink
When installing the default profile, restrict uninstalling of old typ…
Browse files Browse the repository at this point in the history
…es to old FTI based ones.
  • Loading branch information
thet committed Feb 27, 2015
1 parent 01198b9 commit 972c589
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
1.2 (unreleased)
----------------

- When installing the default profile, restrict uninstalling of old types to
old FTI based ones.
[thet]

- Reformatted all templates for 2 space indentation, 4 space for attributes.
[thet]

Expand Down
27 changes: 18 additions & 9 deletions plone/app/contenttypes/profiles/default/types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@
<!-- We remove old ATContentTypes if they exist.
Instances of these types can still be looked at since the
skin-templates in CMFPlone are there but they cannot be edited -->
<object name="Collection" remove="True"/>
<object name="Document" remove="True"/>
<object name="Event" remove="True"/>
<object name="File" remove="True"/>
<object name="Folder" remove="True"/>
<object name="Image" remove="True"/>
<object name="Link" remove="True"/>
<object name="News Item" remove="True"/>
<object name="Topic" remove="True"/>
<object name="Collection" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="Document" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="Event" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="File" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="Folder" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="Image" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="Link" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="News Item" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>
<object name="Topic" remove="True"
meta_type="Factory-based Type Information with dynamic views"/>

<object meta_type="Dexterity FTI" name="Collection" />
<object meta_type="Dexterity FTI" name="Document" />
Expand Down

0 comments on commit 972c589

Please sign in to comment.