-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pages: add tests for adding dexterity objects.
- Loading branch information
Showing
9 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
from zope.interface import Interface | |||
|
|||
|
|||
class IDXTypeSchema(Interface): | |||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
<configure | |||
xmlns="http://namespaces.zope.org/zope" | |||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | |||
i18n_domain="ftw.testing.tests"> | |||
|
|||
<include package="Products.GenericSetup" file="meta.zcml" /> | |||
|
|||
<genericsetup:registerProfile | |||
name="dxtype" | |||
title="ftw.tresting.tests:dxtype" | |||
directory="dxtype" | |||
description="" | |||
provides="Products.GenericSetup.interfaces.EXTENSION" | |||
/> | |||
|
|||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
<?xml version="1.0"?> | |||
<metadata> | |||
<version>1000</version> | |||
<dependencies> | |||
<dependency>profile-plone.app.dexterity:default</dependency> | |||
</dependencies> | |||
</metadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
<object name="portal_types"> | |||
<object name="DXType" meta_type="Dexterity FTI" /> | |||
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
<?xml version="1.0"?> | |||
<object name="DXType" | |||
meta_type="Dexterity FTI" | |||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | |||
i18n:domain="ftw.testing.tests" > | |||
|
|||
<!-- Basic metadata --> | |||
<property name="title">DXType</property> | |||
<property name="global_allow">True</property> | |||
<property name="add_permission">cmf.AddPortalContent</property> | |||
|
|||
<!-- schema interface --> | |||
<property name="schema">ftw.testing.tests.interfaces.IDXTypeSchema</property> | |||
|
|||
<!-- class used for content items --> | |||
<property name="klass">plone.dexterity.content.Item</property> | |||
|
|||
<!-- enabled behaviors --> | |||
<property name="behaviors"> | |||
<element value="plone.app.dexterity.behaviors.metadata.IBasic" /> | |||
<element value="plone.app.content.interfaces.INameFromTitle" /> | |||
</property> | |||
|
|||
<!-- View information --> | |||
<property name="default_view">view</property> | |||
<property name="default_view_fallback">False</property> | |||
<property name="view_methods"> | |||
<element value="view"/> | |||
</property> | |||
|
|||
<!-- Method aliases --> | |||
<alias from="(Default)" to="(dynamic view)"/> | |||
<alias from="edit" to="@@edit"/> | |||
<alias from="sharing" to="@@sharing"/> | |||
<alias from="view" to="(selected layout)"/> | |||
|
|||
<!-- Actions --> | |||
<action | |||
action_id="view" | |||
title="View" | |||
category="object" | |||
condition_expr="" | |||
url_expr="string:${object_url}" | |||
visible="True"> | |||
<permission value="View"/> | |||
</action> | |||
|
|||
<action | |||
action_id="edit" | |||
title="Edit" | |||
category="object" | |||
condition_expr="" | |||
url_expr="string:${object_url}/edit" | |||
visible="True"> | |||
<permission value="Modify portal content"/> | |||
</action> | |||
|
|||
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters